Closed parndt closed 8 years ago
The task should be phoenix_haml.gen.html
@chrismccord it has been so renamed
Any chance we can enable Travis CI for this repo? https://travis-ci.org/chrismccord/phoenix_haml :heart:
@chrismccord anything else that you'd like done to this PR?
I wrote a haml generator, and it looks very similar to this one. I've reviewed the code and only have one comment. In the index template, you should use - for ...
, instead of = for ....
. Calliope was designed to use -
. Other than that, I would like to see this pull request merged.
Steve
@smpallen99 great feedback, that does work!
This works in the same manner as
$ mix phoenix.gen.html
but will produce HAML templates in place of the default eex ones.Example:
This replaces phoenixframework/phoenix#1568
It would be good if the generator from phoenix has
defoverridable
or__using__
so that all of this code doesn't have to be copy pasted for every different template language that needs a generator, but currently that's the way it is.The team at Manuka Coalition (@manukaco) are happy to maintain this generator.