Skip to content

Instantly share code, notes, and snippets.

@jschoch
Created July 26, 2013 17:35
Show Gist options
  • Save jschoch/6090703 to your computer and use it in GitHub Desktop.
Save jschoch/6090703 to your computer and use it in GitHub Desktop.
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