Created
July 26, 2013 17:35
-
-
Save jschoch/6090703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = """ | |
<html> | |
<head></head> | |
<body> | |
<div id="menu">Menu</div> | |
<div id="content"> | |
<%= @unf %> | |
<%= @time %> | |
</div> | |
</body> | |
</html> | |
""" | |
defmodule Foo do | |
tmpl = EEx.function_from_string(:def,:rndr,p,[:unf, :time]) | |
end | |
iex:6: variable tmpl is unused | |
** (CompileError) iex:7: expected var!(assigns) to expand to an existing variable or be a part of a match | |
iex:7: Foo.rndr/2 | |
iex:7: Foo.rndr/2 | |
iex:7: Foo.rndr/2 | |
iex:7: Foo.rndr/2 | |
/usr/local/Cellar/erlang-r16/R16B/lib/erlang/lib/parsetools-2.0.9/include/yeccpre.hrl:128: :elixir_parser.yecctoken_end_location/1 | |
/usr/local/Cellar/erlang-r16/R16B/lib/erlang/lib/parsetools-2.0.9/include/yeccpre.hrl:113: :elixir_parser.yeccpars1/7 | |
/usr/local/Cellar/erlang-r16/R16B/lib/erlang/lib/parsetools-2.0.9/include/yeccpre.hrl:56: :elixir_parser.yeccpars0/5 | |
src/elixir_translator.erl:17: :elixir_translator.forms/4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment