Sha256: cc16aea7a670bb5dda231a4839085ed245c9049b2982706c8cf7ec8ac707f5c2

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# GenGen

A simple generator using github repository.

## Installation

    $ gem install gengen

## Usage

From github:

    $ gengen user/template [directory] [foo=bar ...]

↓

    $ gengen jugyo/sublime-plugin RubyUtils name=RubyUtils command=test

From local git repository:

    $ gengen --local(-l) git_repository_path [directory] [foo=bar ...]

↓

    $ 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`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gengen-1.1.0 README.md