Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template base directory #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

template base directory #11

wants to merge 1 commit into from

Conversation

bablukid
Copy link

@bablukid bablukid commented Jun 7, 2017

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
Copy link
Owner

Simn commented Jun 7, 2017

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