An open API service indexing awesome lists of open source software.

https://github.com/rubyworks/erbside

Inline ERB templating tool
https://github.com/rubyworks/erbside

Last synced: 11 months ago
JSON representation

Inline ERB templating tool

Awesome Lists containing this project

README

          

= Erbside

{Homepage}[http://rubyworks.github.com/erbside] |
{Documentation}[http://rubydoc.info/gems/erbside/frames] |
{Source Code}[http://github.com/rubyworks/erbside] |
{Mailing List}[http://googlegroups.com/group/rubyworks-mailinglist]

{}[http://travis-ci.org/rubyworks/erbside]

== DESCRIPTION

Erbside is a simple in-line project-oriented ERB-based template system.
With Erbside it is very easy to do basic templating without the need
for file duplication.

Erbside also provides direct access to project metadata. It does this
automatically via {DotRuby}[http://dotruby.github.com/dotruby], or it
can be instructed to use other resources, including a project's gemspec.

== FEATURES

* Easy to use.
* Uses ERB. Easy.
* Uses .ruby and .gemspec. Easy.
* The file is the template. Easy.
* Did I mention it was easy?

== SYNOPSIS

In a Ruby script add an ERB comment.

module YourLibrary
VERSION = "1.0.0" #:erb: VERSION="<%= version %>"
end

Then run:

$ erbside myscript.rb

Unless you use the --force option, Erbside will ask you if
want to overwrite the file. Type y and all of the #:erb:
in-line templating will be filled in.

To see what erbside would do without actually writing to the file,
use the `-o/--stdout` option.

$ erbside -o myscript.rb

== INSTALL

=== Gem Install

To install with RubyGems simply open a console and type:

$ gem install erb

=== Site Install

Local installation requires Setup.rb (gem install setup),
then download the tarball package and type:

$ tar -xvzf erb-1.0.0.tgz
$ cd erb-1.0.0.tgz
$ sudo setup.rb all

Windows users use 'ruby setup.rb all'.

== COPYRIGHTS

Copyright (c) 2009 Thomas Sawyer, Rubyworks. All rights reserved.

Erbside is made available according to the terms of the *FreeBSD* license.

See NOTICE.rdoc for details.