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

Inlining of partials #7

Open
ckknight opened this issue Jun 9, 2013 · 0 comments
Open

Inlining of partials #7

ckknight opened this issue Jun 9, 2013 · 0 comments

Comments

@ckknight
Copy link
Owner

ckknight commented Jun 9, 2013

If a partial is requested in a constant way, such as <% partial 'name' %>, then we can retrieve it at compile-time and store it in a way that is a very fast lookup (i.e. just a function). If it is detected that the partial is simple (i.e. not a generator), then we wouldn't even have to yield on it.

The caching system would need to be changed to invalidate any templates that use any statically-compiled partials if the partial changes.

Theoretically this could also be done for inheritance.

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

No branches or pull requests

1 participant