Sha256: 89a68eaa645d48ae74e70bb7b3d18ee9956d26752b30fa6736665bd79d1d8f9d
Contents?: true
Size: 291 Bytes
Versions: 3
Compression:
Stored size: 291 Bytes
Contents
try_require 'liquid' module Nanoc begin class PageDrop < ::Liquid::Drop def initialize(page) @page = page end def before_method(name) name == 'content' ? @page.content : @page.attributes[name.to_sym] end end rescue NameError end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-1.6.2 | lib/nanoc/page_drop.rb |
nanoc-1.6 | lib/nanoc/page_drop.rb |
nanoc-1.6.1 | lib/nanoc/page_drop.rb |