Build Status


Helpers are Ruby modules that get mixed into the template evaluation context. Typically they add methods you may invoke from within templates to produce additional output, retrieve objects or data, or perform other actions.

To add a helper, simply use the helper keyword in your pipeline configuration _ext/pipeline.rb, and specify the module to add as a helper. Be sure you require the appropriate files to have the module loaded. do
  helper Awestruct::Extensions::IntenseDebate
  helper Awestruct::Extensions::GoogleAnalytics

Write your own helper

By default, the _ext/ directory is added to the load path, so you may simply add your helper definition there.

Helper Definition


module MyHelper
  def right_now

Pipeline Configuration


require 'my_helper' do
  helper MyHelper

Usage in a Template


  Generated #{right_now}