Sha256: 97fb383d6e809c2e0b759849d2ca901d99248048c22671427a73444bb3874355

Contents?: true

Size: 380 Bytes

Versions: 15

Compression:

Stored size: 380 Bytes

Contents

# -*- encoding: utf-8 -*-

module Webgen::Tag

  # Prints out the date using a format string which will be passed to Time#strftime. Therefore you
  # can use everything Time#strftime offers.
  class Date

    include Base

    # Return the current date formatted as specified.
    def call(tag, body, context)
      Time.now.strftime(param('tag.date.format'))
    end

  end

end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.7.20090227 lib/webgen/tag/date.rb
gettalong-webgen-0.5.8.20090507 lib/webgen/tag/date.rb
gettalong-webgen-0.5.9.20090620 lib/webgen/tag/date.rb
gettalong-webgen-0.5.9.20090626 lib/webgen/tag/date.rb
thewoolleyman-webgen-0.5.8.20090419 lib/webgen/tag/date.rb
webgen-0.5.17 lib/webgen/tag/date.rb
webgen-0.5.15 lib/webgen/tag/date.rb
webgen-0.5.14 lib/webgen/tag/date.rb
webgen-0.5.13 lib/webgen/tag/date.rb
webgen-0.5.12 lib/webgen/tag/date.rb
webgen-0.5.11 lib/webgen/tag/date.rb
webgen-0.5.10 lib/webgen/tag/date.rb
webgen-0.5.9 lib/webgen/tag/date.rb
webgen-0.5.7 lib/webgen/tag/date.rb
webgen-0.5.8 lib/webgen/tag/date.rb