To add HTML dynamically into S-Rscript's default XSL template create a regular Dynarex document containing the HTML and provide a XSL stylesheet which copies the HTML content e.g.








This makes it possible to keep blocks of HTML separate from each other yet still include them in the same HTML document e.g.



http://rscript.rorbuilder.info/xsl/html.xsl
  • img1
  • img2

hello world


  • line1
  • line2






Initially I considered this type of Dynarex document to be disposable meaning it will be created "just-in-time", however it may be convenient to store Haml or Markdown as a static file.

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/KZPA5hZNgjA/10973