Brewing our own Template Lexer in Ruby
This article was published on Ruby Magic.
Put on your scuba diving suite and pack your stencils, we’re diving into Templates today!
Most software that renders web pages or generates emails uses templating to embed variable data into text documents. The main structure of the document is often set up in a static template with placeholders for the data. The variable data, like user names or web page contents, replace the placeholders while...