rails-ssi 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ rails-ssi gem is a set of helpers for SSI tags in your Rails app
7
7
  * ssi_if(expression
8
8
  * ssi_else
9
9
  * ssi_end
10
+ * ssi_echo
10
11
 
11
12
  <pre>
12
13
  <%= ssi_include(users_path) %>
@@ -22,6 +22,10 @@ module RailsSsi
22
22
  raw "<!--# include virtual='#{path}' -->"
23
23
  end
24
24
 
25
+ def ssi_echo(name, options = {})
26
+ "<!--# echo var='#{name}' #{"default='#{options[:default]}'" if options.key?(:default)} -->".html_safe
27
+ end
28
+
25
29
  end
26
30
 
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSsi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-ssi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - divineforest
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-20 00:00:00 +04:00
18
+ date: 2011-07-11 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21