Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Feature request] Registering partials #38

Open
kapowaz opened this Issue · 5 comments

6 participants

@kapowaz

The current implementation of template.render() assumes that you know exactly what partials (if any) a given template references, which makes calling this method elsewhere somewhat problematic — you need to supply the partial as an argument to the call, which makes dynamically assembling calls to render a bit tricky.

Perhaps I'm missing some crucial detail of how partials are implemented, but if not I'd like to request a feature: that partials can be registered elsewhere (as Handlebars does) and then whenever a template is called it uses a previously registered partial of the appropriate name as it needs to.

@Baggz

+1

@tkellen

+1

@abh

For what it's worth we "solved" it by just passing the templates object as the second parameter. Seems to mosty work okay so far.

@sontek

Yeah, I just pass all my templates in a dictionary to the render call but this could be a good feature.

@abhiesa

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.