How do I render a template from a (non-block) helper? #444
Replies: 1 comment 1 reply
|
I have not check my theory but it looks like you're using wrong HandlebarsTemplate<TextWriter, object, object> CompileView(string templatePath, ViewReaderFactory readerFactoryFactory)For a reference you can look at the following test: Regarding passing a A simple change to fix the problem can be made: expose |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to implement a front-end for Ghost, and one of the helpers they expose to their themes is
{{navigation}}, which pulls a JSON object from settings, and feeds that to another template.The basics are simple:
But what do I pass as a third argument to the template to preserve the values in
options.Data? I've tried passingoptions.Frame, but that results in the runtime crapping itself withAll reactions