This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jakub Šťastný aka Botanicus
committed
Nov 19, 2009
1 parent
4e0e4cc
commit 9c6a85f
Showing
10 changed files
with
51 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# encoding: utf-8 | ||
|
||
# This hook will run before simple-templater creates new files from templates | ||
# You can update context hash. Don't forget to use merge! instead of merge, | ||
# because you are manipulating with one object, rather than returning new one | ||
# Dir.pwd => empty directory where the project will be located | ||
|
||
# rango create app blog --models=post,tag --controllers=posts,tags | ||
setup do |generator, context| | ||
models = context[:models] || Array.new | ||
controllers = context[:controllers] || Array.new | ||
context.merge!(models: models, controllers: controllers) | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# encoding: utf-8 | ||
|
||
# This hook will run before simple-templater creates new files from templates | ||
# You can update context hash. Don't forget to use merge! instead of merge, | ||
# because you are manipulating with one object, rather than returning new one | ||
# Dir.pwd => empty directory where the project will be located | ||
|
||
# rango create app blog --models=post,tag --controllers=posts,tags | ||
setup do |generator, context| | ||
models = context[:models] || Array.new | ||
controllers = context[:controllers] || Array.new | ||
context.merge!(models: models, controllers: controllers) | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# encoding: utf-8 | ||
|
||
# This hook will run before simple-templater creates new files from templates | ||
# You can update context hash. Don't forget to use merge! instead of merge, | ||
# because you are manipulating with one object, rather than returning new one | ||
# Dir.pwd => empty directory where the project will be located | ||
|
||
setup do |generator, context| | ||
# | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<%= shebang @options %> | ||
<%= shebang %> | ||
# encoding: utf-8 | ||
|
||
require "rango" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# encoding: utf-8 | ||
|
||
# This hook will run before simple-templater creates new files from templates | ||
# You can update context hash. Don't forget to use merge! instead of merge, | ||
# because you are manipulating with one object, rather than returning new one | ||
# Dir.pwd => empty directory where the project will be located | ||
|
||
# rango create app blog --models=post,tag --controllers=posts,tags | ||
setup do |generator, context| | ||
models = context[:models] || Array.new | ||
controllers = context[:controllers] || Array.new | ||
context.merge!(models: models, controllers: controllers) | ||
end |
Submodule simple-templater
updated
9 files