Sha256: 0ec392acc8b7d046ba66e8c8f5115fda41ff6234101d62309a16e54a663ceb58
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
module SyntaxHelper def specific_page_vue " #{controller_name} #{action_name} " end def vue_include_tag javascript_include_tag "https://cdn.jsdelivr.net/npm/vue/dist/vue.js" if Rails.env.development? end def rails_version content_tag :p, Rails.version end def vue_on_rails_version content_tag :p, Vueonrails::VERSION end def vue_component(identifier, variable=nil) concat("<div id=\"#{identifier}\" refs=\"#{identifier}\">".html_safe) concat("</div>".html_safe) if(variable != nil) variable.each {|key, value| concat("<div id=\"vueonrails-#{key}\" data-#{key}=\'#{value}\'>".html_safe) concat("</div>".html_safe) }; nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vueonrails-1.0.0.beta1 | app/helpers/syntax_helper.rb |
vueonrails-0.3.0 | app/helpers/syntax_helper.rb |