]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
document new quoting methods.
authorTimo Paulssen <timonator@perpetuum-immobile.de>
Sat, 30 Apr 2011 20:02:25 +0000 (22:02 +0200)
committerJoey Hess <joey@kitenet.net>
Fri, 13 May 2011 15:24:16 +0000 (11:24 -0400)
doc/ikiwiki/directive.mdwn

index fb88aa72d494df0408baa77051abf729d7b83b12..2a7075e4ccfd875102feef370125bc1998aca6dc 100644 (file)
@@ -20,13 +20,26 @@ wrapped to multiple lines if you like:
 
 Also, multiple lines of *quoted* text can be used for a value.
 To allow quote marks inside the quoted text, delimit the block
-of text with triple-quotes:
+of text with triple-double-quotes or triple-single-quotes:
 
        \[[!directive text="""
        1. "foo"
        2. "bar"
        3. "baz"
-       """]]
+       """ othertext='''
+       1. 'quux'
+       2. "foo"
+       ''']]
+
+If you want to put text with triple quotes into a parameter value, you can
+use perl-style here-doc syntax, even nesting it like this:
+
+       \[[!directive text=<<OUTER
+       \[[!otherdirective <<INNER
+       inner text
+       INNER]]
+       outer text
+       OUTER]]
 
 ikiwiki also has an older syntax for directives, which requires a space in
 directives to distinguish them from [[wikilinks|ikiwiki/wikilink]]. This