Is it possible to serve a template from outside the source folder in enlive ?
I would like to pickup the templates from my resources/public/templates folder instead of the src/templates folder, how do I do that ?
Thanks,
Murtaza
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you tried including the folder that contains your templates in the class path. I believe enlive will look at your classpath to locate the template you specify.
If the resources/public folder is already in your classpath your template path should be similar to
(deftemplate template-name “templates/path/to/template” []
…..)