1. detroit-erbside(5)
  2. detroit-erbside(5)

NAME

detroit-erbside - render inline source code templates

DESCRIPTION

The DNote plug-in for Detroit utilize the Erbside command line tool to render inline templates in source code files.

OPTIONS

The following options can be used in the Detroit toolchain file for defining an Erbside tool.

EXAMPLES

A common use by the author of this plugin is for insertion of version number into source code. Say we have the file, lib/myapp/version.rb.

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

Then in the toolchain file:

erbside:
  path: lib/myapp/version.rb
  resource: .index

Of course, by default the path is lib and the resource is .index if present. So a simple:

erbside:
  active: true

Will likely do the trick.

RESOURCES

For more information:

Copyright (c) 2011 Thomas Sawyer, Rubyworks

Detroit Erbside is distributable in accordance with the GPLv3 license.

SEE ALSO

detroit(1), erbside(1)

  1. January 2014
  2. detroit-erbside(5)