baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax
http://ectjs.com
MIT License
626 stars 70 forks source link

includes #11

Open szinya opened 11 years ago

szinya commented 11 years ago

Hi,

I have a file structure like this:

.
├── index.html
└── layouts
    ├── default.html
    └── partials
        └── metas.html

Template root is set to the folder containing index.html and ext is set to .html.

index.html extends layouts/default.html and layouts/default.html includes partials/metas.html.

Is it by design, that I have to write all my includes and extends relative to the template root folder? Like <% include 'layouts/partials/metas' %> in layouts/default.html. At first I thought it should be just <% include 'partials/metas' %> because default.html is already in the layouts folder. It would be cool to use relative include paths.

hendiko commented 8 years ago

I found this issue that is opened three years ago, it depresses me, I reply this issue so that it might be a chance @baryshev could take a look at this issue.

Can't use relative include paths is definitely a huge lost.