Sha256: f53a1a367b2a6328d158491b1f09ded892bc04e7d15d397f0d029e6f249ad602
Contents?: true
Size: 403 Bytes
Versions: 5
Compression:
Stored size: 403 Bytes
Contents
require "pupu/parser" module Pupu module Helpers # Use it in your layout # Example: pupu :autocompleter, :type => "local" def pupu(name, params = Hash.new) comment = if params.empty? then "<!-- Pupu #{name} without params -->" else "<!-- Pupu #{name} with params #{params.inspect} -->" end [comment, Parser.new(name, params).parse!, "", ""].join("\n") end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pupu-0.0.3.pre | lib/pupu/helpers.rb |
pupu-0.0.2.pre | lib/pupu/helpers.rb |
pupu-0.0.2 | lib/pupu/helpers.rb |
pupu-0.1.pre | lib/pupu/helpers.rb |
pupu-0.0.1 | lib/pupu/helpers.rb |