Sha256: 39777be57d32443a522974bd451dd0c9a835763150e58b0954ed803f8530d1ce
Contents?: true
Size: 1005 Bytes
Versions: 2
Compression:
Stored size: 1005 Bytes
Contents
module Henshin class StandardPlugin # the main class for plugins to inherit from eg # # class MyPlugin < NoName::StandardPlugin # # or it can inherit a subclass from below # This is quite useful if a dummy plugin is needed attr_accessor :extensions, :config def initialize @extensions = [] @config = {} end end class HTMLGenerator < StandardPlugin # a plugin which returns html def generate( content ) #return html end end class CSSGenerator < StandardPlugin # a plugin which returns css def generate( content ) #return css end end class JSGenerator < StandardPlugin # a plugin which returns javascript def generate( content ) #return javascript end end class LayoutParser < StandardPlugin # a plugin which returns html # given a layout and data to insert def generate( layout, data ) #return html end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
henshin-0.1.3 | lib/henshin/plugin.rb |
henshin-0.1.2 | lib/henshin/plugin.rb |