Also, add test for encoding issues with erb. Fixes #48.
… used if no magic comment is given. It will be inserted as magic comment in the generated source. Tests included.
Also, add test for encoding issues with erb.
…agic comment to the first line so that it works.
This reverts commit c1b54fd. lol
Because we now uses UnboundMethod (which undefines the method right away) we can safely define the cached method on Object (or BasicObject) without polluting the namespace. Only compiles the template source the second time so it doesn't "punish" users who doesn't cache the Template-instance.