I am trying to create a hierarchical document using a StringTemplate.
For example, a list of directories:
\alpha \file1 \file2 \beta \file3 \gamma \file4 \file5 \file6
Is this possible with StringTemplate?
A simple example would be:
list.st
$it.title$ $it.children:list()$
page.st
$rootNode.children:list()$
For more information, you can read Introduction to StringTemplate (as well as Collections and Template Groups and Complex Data Types and Renders in this trilogy). And don't forget the official StringTemplate documentation .
Source: https://habr.com/ru/post/1761709/More articles:Changing an ASP.NET Login Database - databaseHow can I get a Haskell installation to read in Cygwin? - haskellChanging text at points in a text field using CSS / Javascript - javascriptWhat parts of asp.net, C #, and the database should be used to create a forum like stackoverflow? - asp.netDifferences between Oracle hash and tomcat md5? - oracleHow to find the separator in lens C? - objective-cкак отображать текст в UIWebVIew - objective-cDataGridView rows cannot change background color during initialization - c #Как убить службу Windows с пробелом в имени с помощью taskkill в пакетном файле - service.NET socket lock processing timeout - c #All Articles