temploc2 file not found error

RASPADSISTEMA February 1, 2011, 12:26 am
Ok, here is the correct, working code for windows.. finally php is being generated in tmp folder, yay.

for %%f in (tpl\*.mtt) do (temploc2 %%f -output tmp\ -php -macros tpl\macro.mtt)
RAZAINA January 31, 2011, 2:29 pm
Yep. Most of the time i'm on Linux, but for bigger flash development, i switch on Windows in order to use Flashdevelop :p.

I think that you have two ways on windows:
  • compile files with templo one by one... or only the file you updated.
  • or make a batch file templo.bat
    > for %myFile in (tpl\*.mtt) do (temploc2 %myFile -output tmp\ -php -macros tpl\macros.mt)


RASPADSISTEMA January 31, 2011, 2:19 pm
Thanks for your effort. It would be nice to see some change in program so it accepts folder name as valid parameter, compiling all template files within.
RASPADSISTEMA January 31, 2011, 1:23 pm
Thanks for your effort. It would be nice to see some change in program so it accepts folder name as valid parameter, compiling all template files within.
RAZAINA January 31, 2011, 12:45 pm
I made a batch file doing this command line:

for %myFile in (tpl\*.mtt) do (temploc2 %myFile -output tmp\ -php -macros
tpl\macros.mtt)

But I think that there's a easier way on windows :s.
RAZAINA January 31, 2011, 12:25 pm
Ok, as I'm not a great windows user, I asked on the list, and it seems that on windows the wildcard expansion ("*") is done by the program itself.
RAZAINA January 30, 2011, 11:40 pm
Oh god lol it's so strange...
On linux > command directory\*.extension works
On windows > del \*.extension works
On windows > temploc2 tpl\*.mtt ... doesn't work.. :p

I keep trying...
RASPADSISTEMA January 30, 2011, 9:10 pm
OK, thanks :)
RAZAINA January 30, 2011, 8:48 pm
Hi,
Ok :) I will check that on my Windows tonight.
RASPADSISTEMA January 30, 2011, 8:13 pm
Hello! Windows user here... I'm doing the Your first website powered by haXe tutorial, and it looks sweet, but I can't get Templo to compile template files (bottom of page 1 of tutorial).

I made temploc2.exe in root folder of project, and entered
temploc2 tpl/*.mtt -output tmp/ -php -macros tpl/macro.mtt
into cmd line.

I'm always getting the File not found tpl/*.mtt error, even though this should be correct path to template files. I also made .bat file in which I tried out various different ways to write path, but I always get path related error messages.

Any ideas on why this would occur? I'd really love to get into haxe and hss as it seems these are solutions to many web standard problems, but this bump in the road is kind of annoying.