rejetto forum

Some problems

0 Members and 1 Guest are viewing this topic.

Offline MelkiyProd.

  • Occasional poster
  • *
    • Posts: 70
  • Languages: English, Русский, Українська.
    • View Profile
Hello, rejetto!  :) I have some question. Why doesn't work - {.load|set.txt|special:strings.} - simultaneously two or more such structures. And how to make upload the contents .txt's of all files from one folder to another place template, how it's done on example - {.load|.}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
hi, what you are trying is not valid.
Check the documentation to know how to use the {.load.} command
http://www.rejetto.com/wiki/index.php?title=HFS:_scripting_commands#File_manipulation

What was you trying to achieve? To change the value of the [special:strings] section by using the content of the file? If it's so, then i don't see such possibility currently. You can get something similar by loading the file to a variable
{.load|set.txt|var=T.}
then instead of using
{.!text.}
you will have to use
{.from table|T|text.}

If you find it to be too long, you can short it a little by using [special:alias]

If want to cycle overy files in a folder you will have to do something like this
{.for each|x|{.dir|C:\temp.}|{:
  we got {.^x.}
:}.}