README.md in crafti-0.0.19 vs README.md in crafti-0.0.20
- old
+ new
@@ -16,10 +16,12 @@
I really wanted something that was bash like, but with Ruby block syntax. Something that you could read and get a basic understanding of what is being created. So, the current structure was what I came up with initially and then coded for. I like it, I don't care if you like it, but I'm happy if you want to use it.
## Examples
+There is a Crafti Repository that has some working templates here: [https://github.com/revans/crafti-templates](https://github.com/revans/crafti-templates)
+
### Sinatra Style Structure
````ruby
root "appname" do
mkdirs "log", "test"
@@ -71,15 +73,26 @@
template "test/test_helper.rb",
path.join("test/test_helper.rb"),
{ app_classname: 'FannyPackApplication',
environment: 'ENV["RACK_ENV"]' }
- run "bundle install --binstubs" # runs a terminal command
+ # Yes, bower support - [http://www.bower.io](http://www.bower.io)
+ bower "angularjs", "bootstrap", "sugar"
+
+ # Bundler Support (:install only)
+ bundle :install, with: 'binstubs'
+
+ # Git Support
+ git do
+ init
+ add :all # can replace ':all' with '.', or 'Readme.mkd', 'Procfile', 'Guardfile'
+ commit 'Created the project'
+ end
end
````
## Features coming....
* command to read templates from the internet (e.g. github)
* generate a starter template
-* allow the main template file be an erb file where command options can be passed into (e.g. the name passed to the root method)
\ No newline at end of file
+* allow the main template file be an erb file where command options can be passed into (e.g. the name passed to the root method)