Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Use a more powerfull template engine #323

Open
luisvt opened this issue May 28, 2016 · 2 comments
Open

Use a more powerfull template engine #323

luisvt opened this issue May 28, 2016 · 2 comments

Comments

@luisvt
Copy link

luisvt commented May 28, 2016

As a developer I would like to create templates that contains certain logic, for example you could add erb templates similar to yeoman and then the pubspec.yaml template could look like this:

name: <%= projectName %>
author: <%= author %>
dependencies:
<% if cssPreprocessor == 'sass' %>
  <%= sass: any %>
<% end %>
<% if cssPreprocessor == 'less' %>
  <%= less: any %>
<% end %>
<% if cssPreprocessor == 'stylus' %>
  <%= stylus: any %>
<% end %>
@kwalrath
Copy link
Contributor

kwalrath commented Aug 5, 2016

@devoncarew, @sethladd, @kevmoo: What do you think?

@kevmoo
Copy link
Contributor

kevmoo commented Aug 5, 2016

Interesting idea.

One reason we wanted something super simple: it allows us to create templates that are valid source files. This is why we use the underscore model, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants