Closed tylersticka closed 9 years ago
Looking at what's happening in Fabricator Assemble, it appears that any custom front-matter is available at {{material-name.field}}
, so in this case you would use:
{{button.foo}}
EDIT: though looking at the test fixtures, it seems like the namespace shouldn't be required.
My guess is that @erikjung 's comment gives some meat to the matter but I'm happy to help if it doesn't get you all the way, @tylersticka
@lyzadanger @erikjung That example (as well as the material name) is useful when you're in an actual material template, but it's less useful when you're in a Fabricator partial, in this case f-item-content.html
. That's the context I can't find documented, and it's essential to being able to implement new features without hacking fabricator-assemble
.
So, I'm still stumped.
@tylersticka I'll take this one!
Thank you!
@tylersticka As a temporary workaround, you can try {{@root.button.foo}}
, if you need to develop something and don't mind seeing the button specific data showing up on every material.
@erikjung Thanks, but I think I'll just hold off for now. The hard part (the styles and markup) is done, wiring it in should be trivial. I'd rather just postpone the task for now.
We created an issue for this in the Fabricator Assemble repo. https://github.com/fbrctr/fabricator-assemble/issues/9
Thanks, guys!
I have confirmed that this is working as of #22 being merged. :+1:
Hoping @lyzadanger or @erikjung can help with this one, because I'm apparently not smart enough to figure it out on my own!
As of #17 being merged, there's a placeholder style for external documentation links, which can be really useful when passing along patterns that borrow from some standard or existing body of work:
My intention was to allow for documentation links to be passed along similar to other attributes like
notes
:But after much banging my head against the wall, I discovered that, for whatever reason, I can't get materials to output any custom YAML properties. Even this:
Will compile to:
I whipped up a quick
JSON.stringify
helper for Handlebars, and none of my custom properties are actually making it to the template.Help? :helicopter:
Update: The simplified examples above do not reflect that this is impacting Fabricator partials specifically. Please read the whole thread for an elaborated description of the issue.