public
Rubygem
Description: Classy web-development dressed in a DSL
Homepage: http://sinatrarb.com
Clone URL: git://github.com/bmizerany/sinatra.git
Search Repo:
New standard:  use_in_file_templates uses @@ mytemplate for lookup

i.e.

no more:

  ## index

is now:

  @@ index

This is is to help confusion when using Haml and looks better in pastie ;)
bmizerany (author)
Sat Apr 26 20:03:12 -0700 2008
commit  1987e55049132d35377c16a41f5c66d9f469bb95
tree    d7518149600a50e75de486f04e40bf80e400d599
parent  d16ee6533b01cda980a6311019d6f13efe109e6b
...
1127
1128
1129
1130
 
1131
1132
1133
...
1127
1128
1129
 
1130
1131
1132
1133
0
@@ -1127,7 +1127,7 @@
0
   data = StringIO.new(templates)
0
   current_template = nil
0
   data.each do |line|
0
- if line =~ /^##\s?(.*)/
0
+ if line =~ /^@@\s?(.*)/
0
       current_template = $1.to_sym
0
       Sinatra.application.templates[current_template] = ''
0
     elsif current_template
...
38
39
40
41
 
42
43
44
 
45
46
47
...
38
39
40
 
41
42
43
 
44
45
46
47
0
@@ -38,10 +38,10 @@
0
 
0
 __END__
0
 
0
-## foo
0
+@@ foo
0
 this is foo
0
 
0
-## layout
0
+@@ layout
0
 X
0
 = yield
0
 X

Comments

    No one has commented yet.