You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LFE Shell V5.10.1 (abort with ^G)
> (p '"My paragraph.")
"<p>My paragraph.</p>"> (html (body (div (p '"A paragraph in my page."))))
"<html><body><div><p>A paragraph in my page.</p></div></body></html>"
However, when trying to add attributes to an element, an error is thrown:
> (div '(class"some-css") '"some content")
Apr 11, 20149:57:21 AM erjang.EProc execute0
SEVERE: [java] exiting <0.0.1139> with:
java.lang.InternalError: bad capture_type index
at erjang.m.re.Native.nocapture(Native.java:290)
at erjang.m.re.Native.capture(Native.java:300)
at erjang.m.re.Native.run2(Native.java:171)
at erjang.m.re.Native.run(Native.java:110)
at erjang.m.re.re.do_replace__5(re.erl)
at erjang.m.re.re.do_replace__5$call(re.erl)
at erjang.m.re.re.replace__4(re.erl)
at erjang.m.re.re$FN_replace__4.go2(Unknown Source)
at erjang.EFun.go(EFun.java:76)
at erjang.EFun1.invoke(Unknown Source)
at erjang.m.exemplar.exemplar.$2Dopening$2Dtag__3(exemplar.lfe:65535)
at erjang.m.exemplar.exemplar$FN_$2Dopening$2Dtag__3.go(Unknown Source)
at erjang.EFun2.invoke(Unknown Source)
at erjang.m.exemplar$2Dxml.exemplar$2Dxml.make$2Dxml__3(exemplar-xml.lfe:65535)
at erjang.m.exemplar$2Dxml.exemplar$2Dxml$FN_make$2Dxml__3.go(Unknown Source)
at erjang.EFun2.invoke(Unknown Source)
at erjang.m.lfe_shell.lfe_shell.eval_exp_form__2(lfe_shell.erl:187)
at erjang.m.lfe_shell.lfe_shell$FN_eval_exp_form__2.go(Unknown Source)
at erjang.m.lfe_shell.lfe_shell.eval_form__2$call(lfe_shell.erl)
at erjang.m.lfe_shell.lfe_shell.server_loop__1(lfe_shell.erl:80)
at erjang.m.lfe_shell.lfe_shell$FN_server_loop__1.go(Unknown Source)
at erjang.m.erlang.ErlBif.apply(ErlBif.java:140)
at erjang.m.erlang.ErlBif$FN_apply__2.go(Unknown Source)
at erjang.EProc.execute1(EProc.java:682)
at erjang.EProc.execute0(EProc.java:607)
at erjang.EProc.execute(EProc.java:590)
at kilim.Task._runExecute(Task.java)
at kilim.WorkerThread.run(WorkerThread.java:32)
The text was updated successfully, but these errors were encountered:
oubiwann
changed the title
Erjang: Elemens with attributes throw an error
Erjang: Elements with attributes throw an error
Apr 11, 2014
Using simple Exemplar in Erjang works:
However, when trying to add attributes to an element, an error is thrown:
The text was updated successfully, but these errors were encountered: