[html-template-devel] Re: TMPL_INCLUDE and *default-template-pathname*
Chaitanya Gupta
mail at chaitanyagupta.com
Thu Mar 29 12:52:07 UTC 2007
Edi Weitz wrote:
> On Wed, 28 Mar 2007 16:26:28 +0530, Chaitanya Gupta <mail at chaitanyagupta.com> wrote:
>
>> This seems like a bug to me. Is this how its supposed to work? If
>> yes, then how do I solve the above problem? (I don't want to set
>> html-template:*default-template-pathname* to an absolute path)
>
> I'm not sure I'd call this a bug - I definitely wouldn't expect the
> default pathname to be a relative one. What are you trying to achieve
> by this?
The reason I was setting default pathname to a relative one was because
I want the app to be free of any absolute paths i.e I should be able to
move the whole thing from one directory to another without any changes
whatsoever.
In any case, I realized the solution is simple enough. Evaluating this
form on startup -
(setf html-template:*default-template-pathname* (merge-pathnames
#p"templates/" *default-pathname-defaults*))
Sets default template pathname to an absolute one and also keeps our app
pathname agnostic.
Thanks,
Chaitanya
More information about the Html-template-devel
mailing list