Sha256: 1b8d74bd910a891a4dbef29242844758023ce897b755a49840a5f059af2e1951

Contents?: true

Size: 598 Bytes

Versions: 12

Compression:

Stored size: 598 Bytes

Contents

require File.expand_path "../../../app/helpers/virgo/video_helper", __FILE__
require 'shortcode'

template_root = File.expand_path "../../../app/views/virgo/shortcode_templates", __FILE__
app_template_root = "#{Rails.root}/app/views/virgo/shortcode_templates"

Shortcode.setup do |config|
  config.template_parser = :haml
  config.helpers = [Virgo::VideoHelper]
  config.block_tags = [:pullquote, :blockquote, :h1, :h2, :h3, :h4]
  config.self_closing_tags = [:image, :video, :tweet, :slideshow]
  config.template_paths.prepend(template_root)
  config.template_paths.prepend(app_template_root)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
virgo-0.3.17 config/initializers/shortcode.rb
virgo-0.3.16 config/initializers/shortcode.rb
virgo-0.3.15 config/initializers/shortcode.rb
virgo-0.3.14 config/initializers/shortcode.rb
virgo-0.3.13 config/initializers/shortcode.rb
virgo-0.3.12 config/initializers/shortcode.rb
virgo-0.3.11 config/initializers/shortcode.rb
virgo-0.3.10 config/initializers/shortcode.rb
virgo-0.3.9 config/initializers/shortcode.rb
virgo-0.3.8 config/initializers/shortcode.rb
virgo-0.3.7 config/initializers/shortcode.rb
virgo-0.3.6 config/initializers/shortcode.rb