class Awestruct::Handlers::NonInterpolatingTiltMatcher
Constants
- EXT_REGEX
Public Instance Methods
match(path)
click to toggle source
# File lib/awestruct/handlers/tilt_handler.rb, line 16 def match(path) if match = EXT_REGEX.match(path) if match[0] == '.slim' && !::Tilt.registered?('slim') require 'slim' end if ((match[0] == '.mustache' || match[0] == '.ms') && !::Tilt.registered?('mustache')) require 'awestruct/handlers/template/mustache' ::Tilt::register ::Tilt::MustacheTemplate, 'mustache', 'ms' end true else false end end