Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project name should be used in relevant templates #44

Closed
megnotarte opened this issue May 4, 2016 · 1 comment
Closed

Project name should be used in relevant templates #44

megnotarte opened this issue May 4, 2016 · 1 comment
Assignees
Milestone

Comments

@megnotarte
Copy link
Member

cloudfour/generator-drizzle#9

Small

@megnotarte megnotarte added this to the 1.0 release milestone May 4, 2016
@erikjung erikjung self-assigned this May 5, 2016
@erikjung
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants