jnicklas / templater
- Source
- Commits
- Network (6)
- Issues (1)
- Downloads (22)
- Wiki (1)
- Graphs
-
Tree:
d658b96
templater / CHANGELOG
| 5da6dc2f » | jnicklas | 2008-09-05 | 1 | templater 0.2 | |
| 2 | ============= | ||||
| 3 | |||||
| 4 | [Changed] Generator#actions has been renamed to Generator#all_actions, Generator#actions now looks up local actions based on a certain type. | ||||
| 5 | |||||
| 6 | [Changed] Generator.templates, Generator.files and Generator.empty_directories now return an Array of Templater::ActionDescription instead of an Array of Arrays. | ||||
| a42535a6 » | jnicklas | 2008-09-06 | 7 | ||
| 8 | [Changed] The syntax for blocks for actions has changed, those blocks now take the action as argument. | ||||
| 9 | |||||
| 10 | # Old: | ||||
| 11 | template :something do | ||||
| 12 | source 'blah.rbt' | ||||
| 13 | destination 'blah.rb' | ||||
| 14 | end | ||||
| 15 | |||||
| 16 | # New: | ||||
| 17 | template :something do |template| | ||||
| 18 | template.source = 'blah.rbt' | ||||
| 19 | template.destination = 'blah.rb' | ||||
| 20 | end | ||||
