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

Loosens limitations on naming partials/filters. #32

Merged
merged 1 commit into from
May 26, 2014
Merged

Conversation

tbranyen
Copy link
Owner

At the moment reserved tokens will not be added to partial or filter
names meaning you could not do the following:

var tmpl = combyne("{%partial partials/test%}");
tmpl.registerPartial("partials/test", combyne("Hello world"));

An error would pop up saying unexpected token PARTIAL. In my opinion, I
designed this too strictly and it should be changed to allow for any
variety of characters.

At the moment reserved tokens will not be added to partial or filter
names meaning you could not do the following:

    var tmpl = combyne("{%partial partials/test%}");
    tmpl.registerPartial("partials/test", combyne("Hello world"));

An error would pop up saying unexpected token PARTIAL.  In my opinion, I
designed this too strictly and it should be changed to allow for any
variety of characters.
tbranyen added a commit that referenced this pull request May 26, 2014
Loosens limitations on naming partials/filters.
@tbranyen tbranyen merged commit 3802d6d into master May 26, 2014
@tbranyen tbranyen deleted the loosen-naming branch May 26, 2014 22:35
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.

1 participant