Sha256: 059d8ce77b7c4baea9614cf3e3c4c02a98c18cdb97ea5bab20a6eed3b0294804

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Field
  class String < Base
    has_editor

    def preprocess(value, site)
      Spontaneous::Utils::SmartQuotes.smarten(value.to_s)
    end

    def generate_html(value, site)
      escape_html(value)
    end

    self.register :string, :title
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/field/string.rb
spontaneous-0.2.0.beta9 lib/spontaneous/field/string.rb
spontaneous-0.2.0.beta8 lib/spontaneous/field/string.rb
spontaneous-0.2.0.beta7 lib/spontaneous/field/string.rb
spontaneous-0.2.0.beta6 lib/spontaneous/field/string.rb
spontaneous-0.2.0.beta5 lib/spontaneous/field/string.rb