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
- Host: GitHub
- URL: https://github.com/rubyworks/erbside
- Owner: rubyworks
- Created: 2011-02-21T16:07:20.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2014-01-13T10:16:18.000Z (about 12 years ago)
- Last Synced: 2025-03-12T08:44:47.691Z (11 months ago)
- Language: Ruby
- Homepage: http://rubyworks.github.com/erbside
- Size: 1.18 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rdoc
- Changelog: HISTORY.rdoc
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.