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.66 lib/default.rb
runeblog-0.2.65 lib/default.rb
runeblog-0.2.64 lib/default.rb
runeblog-0.2.63 lib/default.rb
runeblog-0.2.62 lib/default.rb
runeblog-0.2.61 lib/default.rb
runeblog-0.2.60 lib/default.rb
runeblog-0.2.59 lib/default.rb
runeblog-0.2.58 lib/default.rb
runeblog-0.2.57 lib/default.rb
runeblog-0.2.56 lib/default.rb
runeblog-0.2.55 lib/default.rb
runeblog-0.2.54 lib/default.rb
runeblog-0.2.53 lib/default.rb
runeblog-0.2.52 lib/default.rb
runeblog-0.2.51 lib/default.rb
runeblog-0.2.50 lib/default.rb
runeblog-0.2.49 lib/default.rb
runeblog-0.2.48 lib/default.rb
runeblog-0.2.47 lib/default.rb