sinatra_more 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
data/TODO
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
= UNFINISHED
|
2
2
|
|
3
|
+
* fix content_block_tag to eliminate need for concat option
|
3
4
|
* image_tag should start in images_path (or /images)
|
4
5
|
* I have got to add tests, basically create dummy sinatra applications and use Webrat
|
5
6
|
* Become total warden solution (basically just require warden gem installed, do everything else)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
require File.dirname(__FILE__) + '/markup_plugin/form_builder/abstract_form_builder'
|
2
|
+
require File.dirname(__FILE__) + '/markup_plugin/form_builder/standard_form_builder'
|
3
|
+
Dir[File.dirname(__FILE__) + '/markup_plugin/*.rb'].each {|file| load file }
|
2
4
|
|
3
5
|
module SinatraMore
|
4
6
|
module MarkupPlugin
|
@@ -46,7 +46,7 @@ module SinatraMore
|
|
46
46
|
# resolve_template_engine('users/new') => :haml
|
47
47
|
def resolve_template_engine(template_path)
|
48
48
|
resolved_template_path = File.join(self.options.views, template_path + ".*")
|
49
|
-
template_file = Dir
|
49
|
+
template_file = Dir[resolved_template_path].first
|
50
50
|
raise "Template path '#{template_path}' could not be located in views!" unless template_file
|
51
51
|
template_engine = File.extname(template_file)[1..-1].to_sym
|
52
52
|
end
|
data/sinatra_more.gemspec
CHANGED