evancz/Elm — pull request #12 by tazjin (2012-05-29 01:03:45+00:00)
Title: * updated elm QuasiQuoter

The elm QuasiQuoter now supports simple variable interpolation through the ^{...} syntax. This is useful for web applications using type-safe URLs, the URLs are pre-rendered in the Haskell code and then passed on to the elm source file.

A simple example for this is included in the elm-yesod example. It should also be possible to pass the UrlRender function on to the function containing the QuasiQuoted elm source and render the URLs via ^{render WhateverR} though I haven't tested this yet.