hi, i only use signal tpl file for app in normal times, tpl works good. when i read template engine from http://wiki.erlang-web.org/TemplateEngine, following the document, i build the same tpl files, and i use wpart_gen:load_tpl api for load tpl files, like http://www.erlang-web.org/step1.html, when i build the app and run it. it give me following error:
reason: {{badmatch,{error,enoent}}, [{wpart_gen,load_tpl,3}, {lists,foreach,2}, {websso,test,1}, {e_mod_gen,controller,3}, {e_mod_yaws,'-out/1-fun-0-',1}, {e_mod_yaws,with_formatted_error,1}, {e_mod_yaws,out,1}, {yaws_server,deliver_dyn_part,8}]} this is my a part of load tpl code: Tpls = [{base, "test/base.html"}, {half_filled, "test/half_filled.html"}, {filled, "test/filled.html"} ], lists:foreach(fun({Name, Path}) -> wpart_gen:load_tpl(shop, Name, Path) end, Tpls), there is something wrong? please give a whole example for template engines, thanks.:)
------------------------------------------------------------------------------
_______________________________________________ Erlangweb-users mailing list Erlangweb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/erlangweb-users http://www.erlang-web.org/