Permalink
Browse files

add travis status image and use markdown [ci skip]

  • Loading branch information...
1 parent 65d0186 commit 67518b08b20bcefab6cc70d2abde3e79be28be08 Sven Fuchs committed Feb 27, 2012
Showing with 28 additions and 22 deletions.
  1. +28 −0 README.md
  2. +0 −22 README.textile
View
@@ -0,0 +1,28 @@
+# Minimal::Template [![Build Status](https://secure.travis-ci.org/svenfuchs/minimal.png?branch=master)](http://travis-ci.org/svenfuchs/minimal)
+
+Minimal::Template is an experimental, minimalistic templating engine inspired by
+[Markaby]:(http://github.com/markaby/markaby) &
+[Erector]:(http://erector.rubyforge.org) but much smaller (~55 loc) and
+targeted at Rails 3.
+
+ # views/foo/bar.rb
+ module Foo
+ class Bar < Minimal::Template
+ def to_html
+ html do
+ head
+ body do
+ h1 'plain'
+ p local
+ end
+ end
+ end
+ end
+ end
+
+ # somewhere else
+ view = ActionView::Base.new('path/to/your/views')
+ view.render(:file => 'foo/bar', :locals => { :local => 'local' })
+
+ # => '<html><head></head><body><h1>plain</h1><p>local</p></body></html>'</pre>
+
View
@@ -1,22 +0,0 @@
-Minimal::Template is an experimental, minimalistic templating engine inspired by "Markaby":http://github.com/markaby/markaby & "Erector":http://erector.rubyforge.org but much smaller (~55 loc) and targeted at Rails 3.
-
-<pre># views/foo/bar.rb
-module Foo
- class Bar < Minimal::Template
- def to_html
- html do
- head
- body do
- h1 'plain'
- p local
- end
- end
- end
- end
-end
-
-# somewhere else
-view = ActionView::Base.new('path/to/your/views')
-view.render(:file => 'foo/bar', :locals => { :local => 'local' })
-
-# => '<html><head></head><body><h1>plain</h1><p>local</p></body></html>'</pre>

0 comments on commit 67518b0

Please sign in to comment.