lib/alephant/renderer/views/html.rb in alephant-renderer-2.0.1 vs lib/alephant/renderer/views/html.rb in alephant-renderer-2.0.2

- old
+ new

@@ -1,8 +1,8 @@ -require 'alephant/renderer/views/base' -require 'mustache' -require 'i18n' +require "alephant/renderer/views/base" +require "mustache" +require "i18n" module Alephant module Renderer module Views class Html < Mustache @@ -29,12 +29,12 @@ def i18n_load_path_from(base_path) Dir[ File.join( Pathname.new(base_path).parent, - 'locale', - '*.yml') + "locale", + "*.yml") ] .flatten .uniq end @@ -48,16 +48,19 @@ def template @template_string ||= File.open(template_file).read end def template_name - Mustache.underscore(self.class.to_s).split('/').last + Mustache.underscore(self.class.to_s).split("/").last end def template_file - File.join(base_path,'templates',"#{template_name}.#{template_extension}") + File.join( + base_path, + "templates", + "#{template_name}.#{template_extension}" + ) end - end end end end