cloudfour / drizzle

A streamlined tool for developing, documenting and presenting UI pattern libraries.
https://cloudfour.com/thinks/introducing-drizzle/
MIT License
666 stars 32 forks source link

Notes property not working when defined via pattern collection #85

Open derekrushforth opened 8 years ago

derekrushforth commented 8 years ago

Hey Folks!

The name and order properties inside of collection patterns seem to be working great, however note isn't rendering anything for me. I saw that this was defined in the example, so I figured it was possible.

erikjung commented 8 years ago

Hi @derekrushforth,

This is an inconsistency that we're aware of and plan on addressing in the drizzle-builder package. Some of the meta data properties (e.g. name, order) are hoisted to a higher level in the template scope for convenience, while others remain namespaced in the data object.

Can you try accessing the property in your template as data.notes and see if that works?