Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (zotonic001@precise32)1> dbg:tracer().
- {ok,<0.453.0>}
- (zotonic001@precise32)2> dbg:p(all, call).
- {ok,[{matched,zotonic001@precise32,197}]}
- (zotonic001@precise32)3> dbg:tpl(erlydtl_compiler, check_parse, []).
- {ok,[{matched,zotonic001@precise32,1}]}
- (zotonic001@precise32)4> dbg:tpl(erlydtl_compiler, call_extension, []).
- {ok,[{matched,zotonic001@precise32,1}]}
- (zotonic001@precise32)5> ztl:compile(<<"{% loremipsum words=2 dummy=#test %}">>, foo, [{extension_module, ztl_extensions}, {compiler_options, [debug_compiler]}], z:c(testsandbox)).
- (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,[]},init_context,[{dtl_context,[],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,[]}])
- (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,[]},scan,[{scanner_state,"#test %}",
- [{'=',{1,28}},
- {identifier,{1,23},"ymmud"},
- {number_literal,{1,21},"2"},
- {'=',{1,20}},
- {identifier,{1,15},"sdrow"},
- {identifier,{1,4},"muspimerol"},
- {open_tag,{1,1},'{%'}],
- {1,29},
- {in_code,"%}"}}])
- (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,[]},post_scan,[[{open_tag,{1,1},'{%'},
- {identifier,{1,4},loremipsum},
- {identifier,{1,15},words},
- {'=',{1,20}},
- {number_literal,{1,21},"2"},
- {identifier,{1,23},dummy},
- {'=',{1,28}},
- {hash,{1,29},"#"},
- {identifier,{1,30},test},
- {close_tag,{1,35},'%}'}]])
- (<0.47.0>) call erlydtl_compiler:check_parse({error,{{1,29},erlydtl_parser,["syntax error before: ",["\"#\""]]},
- [[{'=',{1,28}},
- {hash,{1,29},"#"},
- {identifier,{1,30},test},
- {close_tag,{1,35},'%}'}],
- {no_func,no_line},
- 87,
- [182,71,39,1,0],
- [{identifier,{1,23},dummy},
- [{{identifier,{1,15},words},{number_literal,{1,21},"2"}}],
- {identifier,{1,4},loremipsum},
- {open_tag,{1,1},'{%'},
- []]]},[],{dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,
- [{open_tag,{1,1},'{%'},
- {identifier,{1,4},loremipsum},
- {identifier,{1,15},words},
- {'=',{1,20}},
- {number_literal,{1,21},"2"},
- {identifier,{1,23},dummy},
- {'=',{1,28}},
- {hash,{1,29},"#"},
- {identifier,{1,30},test},
- {close_tag,{1,35},'%}'}]})
- (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,
- [{open_tag,{1,1},'{%'},
- {identifier,{1,4},loremipsum},
- {identifier,{1,15},words},
- {'=',{1,20}},
- {number_literal,{1,21},"2"},
- {identifier,{1,23},dummy},
- {'=',{1,28}},
- {hash,{1,29},"#"},
- {identifier,{1,30},test},
- {close_tag,{1,35},'%}'}]},parse,[[[{open_tag,{1,1},'{%'},
- {identifier,{1,4},loremipsum},
- {identifier,{1,15},words},
- {'=',{1,20}},
- {number_literal,{1,21},"2"},
- {identifier,{1,23},dummy},
- {'=',{1,28}},
- {hash,{1,29},"#"},
- {identifier,{1,30},test},
- {close_tag,{1,35},'%}'}],
- {no_func,no_line},
- 0,[],[]]])
- (<0.47.0>) call erlydtl_compiler:call_extension({dtl_context,[[{'$autoid',{tree,variable,{attr,0,[],none},'AutoId_feybtg'}}]],
- {dict,0,16,16,8,80,48,
- {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
- {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
- none,[],off,".",
- [[]],
- [],
- [erlydtl_filters],
- "/vagrant/zotonic/deps/erlydtl/priv/custom_tags",[],
- {file,read_file},
- foo,
- [debug_compiler],
- true,false,none,false,false,ztl_extensions,[]},init_treewalker,[{treewalker,0,false,undefined}])
- ** exception error: no case clause matching {tag,{identifier,{1,4},loremipsum},
- [{{identifier,{1,15},words},{number_literal,{1,21},"2"}},
- {{identifier,{1,23},dummy},
- {extension,{auto_id,{identifier,{1,30},test}}}}],
- false}
- in function erlydtl_compiler:value_ast/5
- in call from erlydtl_compiler:'-body_ast/3-fun-2-'/3
- in call from lists:mapfoldl/3
- in call from erlydtl_compiler:body_ast/3
- in call from erlydtl_compiler:compile_to_binary/4
- in call from erlydtl_compiler:compile/3
- (zotonic001@precise32)6>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement