Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added SSI 'echo' command

  • Loading branch information...
commit 9868c9d4725b437b95f725745778dd4ba2524ecb 1 parent 5d15736
@divineforest authored
View
1  README.textile
@@ -7,6 +7,7 @@ rails-ssi gem is a set of helpers for SSI tags in your Rails app
* ssi_if(expression
* ssi_else
* ssi_end
+* ssi_echo
<pre>
<%= ssi_include(users_path) %>
View
4 lib/rails-ssi.rb
@@ -22,6 +22,10 @@ def ssi_include(path)
raw "<!--# include virtual='#{path}' -->"
end
+ def ssi_echo(name, options = {})
+ "<!--# echo var='#{name}' #{"default='#{options[:default]}'" if options.key?(:default)} -->".html_safe
+ end
+
end
end
View
2  lib/rails-ssi/version.rb
@@ -1,3 +1,3 @@
module RailsSsi
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end
Please sign in to comment.
Something went wrong with that request. Please try again.