Should be able to send partials as tokens #263

Open
thedufer opened this Issue Oct 3, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@thedufer

thedufer commented Oct 3, 2012

If we can compile tokens into a rendering function, we should be able to pass tokens in for partials as well. Something as simple as "check if partial is an array; compile tokens if it is, compile if it isn't" seems like it would work.

My current work-around is to compile tokens myself, stuff them into my writer's _partialCache, and then not pass partials into the rendering function, but it feels very hacky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment