README.md in gengen-1.0.1 vs README.md in gengen-1.1.0
- old
+ new
@@ -8,22 +8,40 @@
## Usage
From github:
- gengen user/template [dirctory] [foo=bar ...]
+ $ gengen user/template [directory] [foo=bar ...]
↓
- gengen jugyo/sublime-plugin RubyUtils name=RubyUtils command=test
+ $ gengen jugyo/sublime-plugin RubyUtils name=RubyUtils command=test
From local git repository:
- gengen --local(-l) git_repository_path [dirctory] [foo=bar ...]
+ $ gengen --local(-l) git_repository_path [directory] [foo=bar ...]
↓
- gengen -l /path/to/sublime-plugin RubyUtils name=RubyUtils command=test
+ $ gengen -l /path/to/sublime-plugin RubyUtils name=RubyUtils command=test
+
+## Creating Template
+
+It is simple. You can embed variables to template using `{{{var}}}`:
+
+ import sublime, sublime_plugin
+
+ class {{{name}}}Command(sublime_plugin.TextCommand):
+ def run(self, edit):
+ sublime.message_dialog("foo")
+
+You can also embed variables in file name:
+
+ {{{name}}}.py
+
+## Example Templates
+
+* [sublime-plugin.gengen](https://github.com/jugyo/sublime-plugin.gengen)
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)