30 Lines Implementation of eRuby
October 9th, 2007eRuby is a specification to embed Ruby code (expression or statement) in any text file. There are thee implementation of eRuby:
ERB (pure Ruby, most popular and included in Ruby 1.8) eruby (implemented as C extention) Erubis (pure Ruby, very fast and extensible)
Using pattern matching, it is easy to implement eRuby. The following is a complete eRuby implementation (named TinyEruby) [...]