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

Project name should be used in relevant templates #44

Closed megnotarte closed 8 years ago

megnotarte commented 8 years ago

https://github.com/cloudfour/generator-drizzle/issues/9

Small

erikjung commented 8 years ago

More info on the plan of attack for this...

The generator is going to be updated to output a default Drizzle data file for template consumption.

For example, if "My Project" is supplied as a project title during the generator prompting, then a file like this will be created:

# project.yaml
title: My Project

and the resulting Drizzle templates will be able to use it as regular data:

<title>{{data "project.title"}}</title>

This data file approach will ultimately be more flexible and easier to maintain, compared to writing the user input values to hard-coded HTML.

/CC @mrgerardorodriguez @tylersticka