1: <fieldset>
2: <legend><TMPL_VAR raw_name></legend>
3: <pre>
4: <TMPL_VAR raw_text>
5: </pre>
6: <TMPL_UNLESS NAME="text">
7:
8: ## Description
9:
10: Use this template to display the content of a file, while making a clear distinction with the [[programlisting_template|templates/programlisting]].
11:
12: Remember that shell commands may be prefixed by:
13:
14: * *name* - the name (or path) of the file
15: * *text* - text to display as file's content
16:
17: ## Examples
18:
19: [[!template id=filecontent name="/etc/fstab" text="""
20: /dev/wd0a / ffs rw,log 1 1
21: /dev/wd0b none swap sw 0 0
22: kernfs /kern kernfs rw
23: ptyfs /dev/pts ptyfs rw
24: procfs /proc procfs rw
25: /dev/cd0a /cdrom cd9660 ro,noauto
26: """]]
27:
28: is obtained with:
29:
30: \[[!template id=filecontent name="/etc/fstab" text="""
31: /dev/wd0a / ffs rw,log 1 1
32: /dev/wd0b none swap sw 0 0
33: kernfs /kern kernfs rw
34: ptyfs /dev/pts ptyfs rw
35: procfs /proc procfs rw
36: /dev/cd0a /cdrom cd9660 ro,noauto
37: """]]
38: </TMPL_UNLESS>
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb