trulia / hologram

A markdown based documentation system for style guides.
http://trulia.github.io/hologram
Other
2.16k stars 199 forks source link

Can we access markdown variables inside a template? #258

Open sonniesedge opened 8 years ago

sonniesedge commented 8 years ago

It would be great if we could access the documentation variables inside a template. So, in addition to the <%= rendered_example %> and <%= code_example %> variables, we might have <%= category %> and <%= name %>.

As a use case, being able to assign the current name as an ID would really help with our automated visual regression testing workflow.

ffoodd commented 8 years ago

I agree, I'd need an ID to add an accessible hide/show system on templates — which means using [aria-controls="ID"].

And there's probably other use cases out there :)