rougail/tests/dictionaries/01base_file_include_content/tmpl/file
Emmanuel Garette 0be7a72d28 Add new attribute "include" to "file"
This attribute have 3 values:
- "no": it's a normal file
- "name": the name is included in another template so it is generated before other templates
- "content": the content is included in another template so it is generated before the other templates and is not installed on the server

fixes #2
2021-02-21 10:44:48 +01:00

7 lines
188 B
Text

%import os
%set %%confdir = %%rougail_destination_dir + '/etc/dir/'
%set %%files = %%os.listdir(%%confdir)
%%files.sort()%slurp
%for file in %%files
%include raw %%confdir + file
%end for