[haXe] hxblog site
Laurent Bedubourg
lbedubourg at motion-twin.com
Thu Dec 21 16:03:34 CET 2006
Lee McColl Sylvester wrote:
> Aha, but I already did that before trying the blog system :-) So it's
> not that. The tmp definitely exists, also, so it's not that either.
> Any other thoughts?
>
> Thanks,
> Lee
>
Some thoughts then :)
The file_contents exception is thrown by mtwin.templo.Loader.hx :
if (BASE_DIR == "")
result = Sys.command("temploc -s "+macroArg+" -o "+TMP_DIR+" "+path+"
2> "+TMP_DIR+"temploc.out");
else
result = Sys.command("temploc -s "+macroArg+" -o "+TMP_DIR+" -r
"+BASE_DIR+" "+path+" 2> "+TMP_DIR+"temploc.out");
if( result != 0 )
throw "temploc compilation or "+path+" failed :
"+neko.io.File.getContent(Loader.TMP_DIR+"temploc.out");
For some reason, temploc is not able to compile `path`.
Perhaps it is not able to find the template repository ?
Usually temploc.exe errors are found in the temploc.out file but
neko.io.File is not able to load its content...
Repositories are configured in src/App.hx in the init() function.
mtwin.templo.Loader.BASE_DIR = neko.Web.getCwd() + "../tpl/" + if
(config.get("theme") != null) config.get("theme")+"/" else "";
mtwin.templo.Loader.TMP_DIR = neko.Web.getCwd() + "../tmp/";
You should trace these values and may be modify them to transform \ into / .
To answer your other message, no hxblog has not been tested on windows yet.
Concerning the mix of \ and / in windows pathes, neko usually works
quite well with it and templo has been tested with other website
projects on windows.
I think the problem resides in some little configuration error, please
check DIRS.
Regards
Laurent
--
Laurent Bedubourg
lbedubourg at motion-twin.com
http://www.motion-twin.com
More information about the Haxe
mailing list