reviewed_braai 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,5 +6,12 @@ module ReviewedBraai
6
6
  attr ? attr.to_s : "<!-- #{matches.last} -->"
7
7
  end
8
8
  end
9
+
10
+ class DefaultRegion < ReviewedBraai::Handlers::Base
11
+ def perform
12
+ return nil unless matches[1] == matches[-1]
13
+ "<!-- #{matches[1]} region -->"
14
+ end
15
+ end
9
16
  end
10
17
  end
@@ -3,6 +3,7 @@ module ReviewedBraai
3
3
  module Default
4
4
  # Overwrite default catch-all route (respects template variables)
5
5
  Braai::Template.map(/({{\s*([\w]+)\s*}})/i, ReviewedBraai::Handlers::Default)
6
+ Braai::Template.map(/({{\s*([\w]+)\s*}}(.*){{\s*\/([\w]+)\s*}})/mi, ReviewedBraai::Handlers::DefaultRegion)
6
7
  end
7
8
  end
8
9
  end
@@ -1,3 +1,3 @@
1
1
  module ReviewedBraai
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed_braai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: