<TMPL_VAR raw_name>


<TMPL_UNLESS NAME="text">

Description

Use this template to display the content of a file, while making a clear distinction with the programlisting template.

Remember that shell commands may be prefixed by:

Examples

/etc/fstab

/dev/wd0a   /     ffs      rw,log   1 1
/dev/wd0b   none      swap     sw       0 0
kernfs      /kern     kernfs   rw
ptyfs       /dev/pts  ptyfs    rw
procfs      /proc     procfs   rw
/dev/cd0a   /cdrom    cd9660   ro,noauto

is obtained with:

[[!template  id=filecontent name="/etc/fstab" text="""
/dev/wd0a   /     ffs      rw,log   1 1
/dev/wd0b   none      swap     sw       0 0
kernfs      /kern     kernfs   rw
ptyfs       /dev/pts  ptyfs    rw
procfs      /proc     procfs   rw
/dev/cd0a   /cdrom    cd9660   ro,noauto
"""]]

</TMPL_UNLESS>

Add a comment