lib/splash/templates.rb in prometheus-splash-0.5.3 vs lib/splash/templates.rb in prometheus-splash-0.6.0
- old
+ new
@@ -1,14 +1,21 @@
# coding: utf-8
+
+# base Splash Module
module Splash
+
+ # Templates namespace
module Templates
# KISS template Engine
class Template
+ # getter of the list of token
attr_reader :list_token
+ # getter of the template file
attr_reader :template_file
+ # getter of the flat content of the template
attr_reader :content
# constructor : generate the pseudo accessor for template Class from token list
def initialize(_options)
@@ -70,11 +77,14 @@
return _my_res
end
end
+ # Exception for an invalid Token list
class InvalidTokenList < Exception; end
+ # Exception for an malformed token
class NotAToken < Exception; end
+ # Exception for an invalid template file
class NoTemplateFile < Exception; end
end
end