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

Allow functions in addition to maps for partials #35

Open
jcromartie opened this issue Nov 26, 2013 · 1 comment
Open

Allow functions in addition to maps for partials #35

jcromartie opened this issue Nov 26, 2013 · 1 comment

Comments

@jcromartie
Copy link

I would like to be able to pass a function that takes a partial name and returns the template, instead of a map of names to partial templates. Using a memoized function would enable lazy loading of partial resources rather than having to load every partial that a template may use ahead of time.

@benfleis
Copy link

+1 as I just implemented the annoying (load-partials) to preload everything :/

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

2 participants