Sha256: affa78d8fa711104906ac1ad4d6f8c28a7694b1fb33fd9c1a5b384f10be5f229
Contents?: true
Size: 236 Bytes
Versions: 4
Compression:
Stored size: 236 Bytes
Contents
module Frank module TemplateHelpers include FrankHelpers def render_partial(path) pieces = path.split("/") partial = '_' + pieces.pop render_path File.join(pieces.join('/'), partial) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
frank-0.1.3 | lib/frank/template_helpers.rb |
frank-0.1.2 | lib/frank/template_helpers.rb |
frank-0.1.1 | lib/frank/template_helpers.rb |
frank-0.1.0 | lib/frank/template_helpers.rb |