lib/angelo/base.rb in angelo-0.1.1 vs lib/angelo/base.rb in angelo-0.1.2

- old
+ new

@@ -30,11 +30,16 @@ def subclass.root @root ||= File.expand_path '..', app_file end def subclass.view_dir - v = self.class_variable_get(:@@views) rescue 'views' + v = self.class_variable_get(:@@views) rescue DEFAULT_VIEW_DIR File.join root, v + end + + def subclass.public_dir + p = self.class_variable_get(:@@public_dir) rescue DEFAULT_PUBLIC_DIR + File.join root, p end end def compile! name, &block