module SyntaxHelper def specific_page_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 "

#{Rails.version}

".html_safe end def vue_on_rails_version "

#{VueOnRails::VERSION}

".html_safe end def vue_component(identifier, variable=nil) concat("
".html_safe) concat("
".html_safe) if(variable != nil) variable.each {|key, value| concat("
".html_safe) concat("
".html_safe) }; nil end end end