Site helper methods [13.03.2009]

A helper method is a method that is available to any of your templates, and outputs a string (normally of HTML).

You can now define helper methods for particular sites. Just edit lib/site_helper.rb and write your own methods. This change should reduce some of the current reliance on ingredients. Remember that ingredients are still good for HTML-heavy snippets, but helper methods are probably better for logic-intensive stuff.

See the comments of the default site_helper.rb for more info.

Only the comment field is required. Omitting the ID fields increases your risk of being mistaken for spam.

Preview or