Dasix / grits-plugin-docs

A Grits plugin for generating documentation
Other
1 stars 1 forks source link

Passing config options to a helper doesn't work. #46

Open robwhite4 opened 7 years ago

robwhite4 commented 7 years ago

When trying to pass a helper to a layout with config options, the entire helper is not processed by grits, but output as a string literal.

See the following:

conf - https://github.com/Dasix/grits-plugin-docs/blob/issue-44-disqus-config-support/test/fixtures/basic/conf/grits.json#L19

image

layout - https://github.com/Dasix/grits-plugin-docs/blob/issue-44-disqus-config-support/src/layouts/docs.html.dust#L37

image

html result -

image

html inspect -

image

You can see that 'helpertest' is being passed from conf file, but then the whole helper is just output as a string into the layout.

However; if I don't pass the param via conf, and just type it in there, it works fine.

Let me know what other info you need.

Thanks,

~Rob

robwhite4 commented 7 years ago

I pushed a branch containing buggy code above --> https://github.com/Dasix/grits-plugin-docs/tree/issue-44-disqus-config-support in case you need it.

I'll go back into my message and edit it with code line links, etc..

~Rob