Templates and path

21 views
Skip to first unread message

vidyanand

unread,
Sep 21, 2010, 8:58:09 AM9/21/10
to H2o template PHP
Hi

So here is my situation. I have a template called base.tpl in the
templates directory. I have a directory called products under
templates in which I have products.tpl. I want to extend base.tpl in
product.tpl

According to the normal django convention I should just use base.tpl
and it should work. In order to make this work I had to say {% extends
'../base.tpl' %}. However this has some issues since I have some
includes in base.tpl file.

Please let me know how I should continue with this. Do I need to make
sure all my templates are in the same directory.

FYI, I am using h2o template along with cobweb . Please see
http://github.com/gunderwonder/cobweb-h2o

thank
Vidyanand.
Reply all
Reply to author
Forward
0 new messages