Skip to content

template base directory#11

Open
bablukid wants to merge 1 commit into
Simn:masterfrom
bablukid:master
Open

template base directory#11
bablukid wants to merge 1 commit into
Simn:masterfrom
bablukid:master

Conversation

@bablukid

@bablukid bablukid commented Jun 7, 2017

Copy link
Copy Markdown

allow to specify the template base directory. It's usefull with ::use:: to avoid to specify the full path to the file.

For instance this use case for a web page like described in https://github.com/ncannasse/templo

::use 'design.mtt'::
    <h2>The content to write in design.mtt</h2>
::end::

@Simn

Simn commented Jun 7, 2017

Copy link
Copy Markdown
Owner

I'm not sure if this is really necessary. You can address the issue by pre-loading all used templates.

If we add this, it should at least deal with absolute vs. relative paths and make sure we don't run into problems with missing/additional slashes/backslashes. The haxe.io.Path API provides some functions for that like isAbsolute and join.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants