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

Version Path
runeblog-0.2.88 lib/default.rb
runeblog-0.2.87 lib/default.rb
runeblog-0.2.86 lib/default.rb
runeblog-0.2.85 lib/default.rb
runeblog-0.2.84 lib/default.rb
runeblog-0.2.83 lib/default.rb
runeblog-0.2.82 lib/default.rb
runeblog-0.2.81 lib/default.rb
runeblog-0.2.80 lib/default.rb
runeblog-0.2.79 lib/default.rb
runeblog-0.2.78 lib/default.rb
runeblog-0.2.77 lib/default.rb
runeblog-0.2.76 lib/default.rb
runeblog-0.2.75 lib/default.rb
runeblog-0.2.74 lib/default.rb
runeblog-0.2.73 lib/default.rb
runeblog-0.2.72 lib/default.rb
runeblog-0.2.71 lib/default.rb
runeblog-0.2.70 lib/default.rb
runeblog-0.2.69 lib/default.rb