Sha256: 76e39f7433f9fabb4d7009ebc13f0432d250d7d5c5e900f7821abd1a2466a232

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

module SyntaxHelper
  def page_specific_vue
    return " #{controller_name} #{action_name} "
  end

  def vue_include_tag(version)
    javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/vue/#{version}/vue.js" if Rails.env.development?
  end

  def rails_version
    "<p>#{Rails.version}</p>".html_safe
  end

  def vuejs_gem_version
     "<p>#{Vuejs::VERSION}</p>".html_safe
  end
  
  def vue(identifier)
    concat("<div id=\"#{identifier}\" refs=\"#{identifier}\">".html_safe)
    yield
    concat("</div>".html_safe)
  end

  alias v vue
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vuejs-1.1.0.beta2 app/helpers/syntax_helper.rb
vuejs-1.1.0.beta1 app/helpers/syntax_helper.rb