pakman
- Template Pack Manager in Ruby (incl. Embedded Ruby, Liquid, etc.)¶ ↑
-
home :: github.com/rubylibs/pakman
-
gem :: rubygems.org/gems/pakman
-
rdoc :: rubydoc.info/gems/pakman
-
forum :: groups.google.com/group/wwwmake
Usage - Ruby Code¶ ↑
Fetch a template pack:
Pakman::Fetcher.new.fetch_pak( src, pakpath )
Copy a template pack from your cache:
Pakman::Copier.new.copy_pak( src, pakpath )
Merge a template pack from your cache:
Pakman::Templater.new.merge_pak( src, pakpath, binding, name )
List all template packs in your cache (using passed in search path):
patterns = [ "#{File.expand_path('~/.pak')}/*.txt", "#{File.expand_path('~/.pak')}/*/*.txt", "*.txt", "*/*.txt" ] Pakman::Finder.new.find_manifests( patterns )
Usage - Command Line¶ ↑
The pakman
gem includes a little command line tool. Try pakman -h
for details:
pakman - Lets you manage template packs. Usage: pakman [options] -f, --fetch URI Fetch Templates -t, --template MANIFEST Generate Templates -l, --list List Installed Templates -c, --config PATH Configuration Path (default is ~/.pak) -o, --output PATH Output Path (default is .) -v, --version Show version --verbose Show debug trace -h, --help Show this message
Install¶ ↑
Just install the gem:
$ gem install pakman
Real World Usage¶ ↑
The {slideshow
} (also known as Slide Show (S9)) gem that lets you create slide shows and author slides in plain text using a wiki-style markup language that's easy-to-write and easy-to-read.
Real World Template Packs¶ ↑
License¶ ↑
The pakman
scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.
Questions? Comments?¶ ↑
Send them along to the wwwmake forum/mailing list. Thanks!