Sha256: 555fadf296908dcfbb42241b0628d212b8fb042e19f243caf2a5ecea345df6b0
Contents?: true
Size: 693 Bytes
Versions: 43
Compression:
Stored size: 693 Bytes
Contents
class RuneBlog::Default # This will all become much more generic later. def RuneBlog.post_template(num: 0, title: "No title", date: nil, view: "test_view", teaser: "No teaser", body: "No body", tags: ["untagged"], views: [], back: "javascript:history.go(-1)", home: "no url") log!(enter: __method__, args: [num, title, date, view, teaser, body, tags, views, back, home], level: 3) viewlist = (views + [view.to_s]).join(" ") taglist = ".tags " + tags.join(" ") <<-TEXT .mixin liveblog . ^ get rid of this later .post #{num} .title #{title} .pubdate #{date} .views #{viewlist} #{taglist} .teaser #{teaser} .end #{body} TEXT end end
Version data entries
43 entries across 43 versions & 1 rubygems