telmich/cdist — pull request #71 by renard (2012-05-25 18:58:48+00:00)
Title: File template support

Basic (variable expansion) template support for the __file type

`````
# content of __manifest/templates/nginx/basic.conf
server {
listen 80;
server_name $SERVERNAME;
root $ROOT;

access_log /var/log/nginx/$SERVERNAME_access.log
error_log /var/log/nginx/$SERVERNAME_error.log
}
`````

In the manifest:

`````
__file /etc/nginx/sites-available/test-template.conf \
--source "$__manifest/templates/nginx/basic.conf" \
--var SERVERNAME=test --var ROOT=/var/www/test
````