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
This commit is contained in:
7
tests/dictionaries/01base_file_include_name/tmpl/file
Normal file
7
tests/dictionaries/01base_file_include_name/tmpl/file
Normal file
@ -0,0 +1,7 @@
|
||||
%import os
|
||||
%set %%confdir = '/etc/dir/'
|
||||
%set %%files = %%os.listdir(%%rougail_destination_dir + %%confdir)
|
||||
%%files.sort()%slurp
|
||||
%for %%file in %%files
|
||||
include %%{confdir}%%file
|
||||
%end for
|
Reference in New Issue
Block a user