Permalink
Browse files

Fix the rest of items to adhere to new syntax in Example sections

  • Loading branch information...
1 parent ed73d10 commit a23806cd10a18836c5e2e1375beebaf7eb86d123 @docelic docelic committed Dec 14, 2004
Showing with 77 additions and 177 deletions.
  1. +2 −7 refs/SessionType
  2. +2 −5 refs/Suggest
  3. +3 −12 refs/ValuesDefault
  4. +4 −15 refs/VariableDatabase
  5. +2 −7 refs/VendURL
  6. +2 −7 refs/WideOpen
  7. +4 −11 refs/banner
  8. +6 −11 refs/bar-button
  9. +14 −27 refs/button
  10. +14 −26 refs/capture_page
  11. +4 −9 refs/cart
  12. +6 −11 refs/cgi.tag
  13. +5 −10 refs/crypt.tag
  14. +5 −10 refs/formel
  15. +4 −9 refs/no_html_comment_embed
View
@@ -36,15 +36,10 @@ __NAME__ notes
reliability in most environments.
__END__
-__NAME__ example
-<example>
- <title>Setting SessionType</title>
- <para>
- Put the following in &ccf;:
- </para>
+__NAME__ example: Setting SessionType
+Put the following in &ccf;:
<programlisting>
SessionExpire session-data.lock
</programlisting>
-</example>
__END__
View
@@ -27,15 +27,12 @@ a feature or capability. When the tested feature is missing, a
warning message is shown.
__END__
-__NAME__ example
-<example>
- <title>Testing for features</title>
-<programlisting>
+__NAME__ example: Testing for features
+<pogramlisting>
Suggest module Archive::Zip
Suggest usertag table_editor
Suggest globalsub file_info
Suggest module Business::UPS
</programlisting>
-</example>
__END__
View
@@ -21,27 +21,18 @@ is not logged in (and hasn't set any
of his preferences for the current session), the defaults will be used.
__END__
-__NAME__ example
-<example>
- <title>Defining default values</title>
- <para>
- Put the following in &ccf;:
- </para>
+__NAME__ example: Defining default values
+Put the following in &ccf;:
<programlisting>
ValuesDefault fname New lname User
ValuesDefault country HR
</programlisting>
- <para>
- Create a test page:
- </para>
+Create a test page:
<programlisting><![CDATA[
Welcome!<br/>
Your first name is: [value fname]<br/>
Your last name is: [value lname]<br/>
Your country code is: [value country]
]]></programlisting>
-<para>
-</para>
-</example>
__END__
View
@@ -40,34 +40,23 @@ VariableDatabase variables
__END__
-__NAME__ example
-<example>
- <title>Enabling VariableDatabase</title>
- <para>
- Save the following as <filename>products/variables.txt</filename>:
- </para>
+__NAME__ example: Enabling VariableDatabase
+Save the following as <filename>products/variables.txt</filename>:
<programlisting>
code Variable
HELLO Hi
ANON Guest
</programlisting>
- <para>
- Put the following lines in &ccf;:
- </para>
+Put the following lines in &ccf;:
<programlisting>
Database variables variables.txt TAB
VariableDatabase variables
</programlisting>
- <para>
- Create a test page:
- </para>
+Create a test page:
<programlisting><![CDATA[
[tmp user][either][data session username][or]__ANON__[/either][/tmp]
__HELLO__, [scratch user]!
]]></programlisting>
-<para>
-</para>
-</example>
__END__
View
@@ -29,15 +29,10 @@ protocol and hostname specification.
__END__
-__NAME__ example
-<example>
- <title>Setting VendURL</title>
- <para>
- Put the following lines in &ccf;:
- </para>
+__NAME__ example: Setting VendURL
+Put the following lines in &ccf;:
<programlisting>
VendURL http://&def-hostname;/cgi-bin/ic/tutorial
</programlisting>
-</example>
__END__
View
@@ -32,16 +32,11 @@ Also do not use it unless you are using some encryption
__END__
-__NAME__ example
-<example>
- <title>Enabling WideOpen directive</title>
- <para>
- Put any of the following lines in &ccf;:
- </para>
+__NAME__ example: Enabling WideOpen directive
+Put any of the following lines in &ccf;:
<programlisting>
WideOpen 1
WideOpen Yes
</programlisting>
-</example>
__END__
View
@@ -171,16 +171,9 @@ entries, separated by chosen delimiters.
__END__
-__NAME__ example
- <example>
- <title>
- Banner Ads
- </title>
- <para>
- For the relevant supplemental description and all ready-to-use examples,
- see the <olink targetdoc='howtos' targetptr='implementbanners'>
- Implement Banner Ads</olink> HOW-TO.
- </para>
- </example>
+__NAME__ example: Banner Ads
+For the relevant supplemental description and all ready-to-use examples,
+see the <olink targetdoc='howtos' targetptr='implementbanners'>
+Implement Banner Ads</olink> HOW-TO.
__END__
View
@@ -43,16 +43,12 @@ when there is no match.
__END__
-__NAME__ example
-<example>
- <title>Create 3-button menubar</title>
- <para>
- Create three different pages,
- <filename>page1.html</filename>,
- <filename>page2.html</filename> and
- <filename>page3.html</filename>, each with the identical content:
- </para>
- <programlisting><![CDATA[
+__NAME__ example: Create 3-button menubar
+Create three different pages,
+<filename>page1.html</filename>,
+<filename>page2.html</filename> and
+<filename>page3.html</filename>, each with the identical content:
+<programlisting><![CDATA[
<table><tr>
[bar-button page=page1]
@@ -78,6 +74,5 @@ __NAME__ example
</tr></table>
]]></programlisting>
-</example>
__END__
View
@@ -115,13 +115,9 @@ as confirmation popup windows.
See <xref linkend='button_examples'/> for illustrative presentation.
__END__
-__NAME__ example
-<example>
- <title>Submit button with an image and confirmation window</title>
- <para>
- Notice the tags used in the button body:
- </para>
- <programlisting>
+__NAME__ example: Submit button with an image and confirmation window
+Notice the tags used in the button body:
+<programlisting>
[button text="Delete item" confirm="Are you sure?" src="delete.gif"]
[comment]
[button] element's body specifies the action code. It is what you would
@@ -131,20 +127,15 @@ __NAME__ example
[mvtag] Use any Interchange tag here, i.e. ....[/mvtag]
[perl] # code to delete item [/perl]
[/button]
- </programlisting>
-</example>
+</programlisting>
__END__
-__NAME__ example-inp
-<example>
- <title>Creating the submit button manually</title>
- <para>
- We are here to discuss the usage of the <tag>button</tag> tag, but let's
- take a look at an
- example equivalent to the one above, except that we create the button
- manually:
- </para>
- <programlisting>
+__NAME__ example-inp: Creating the submit button manually
+We are here to discuss the usage of the <tag>button</tag> tag, but let's
+take a look at an
+example equivalent to the one above, except that we create the button
+manually:
+<programlisting>
[set Delete item]
[comment]
[button] element's body specifies the action code.
@@ -155,18 +146,14 @@ __NAME__ example-inp
<![CDATA[
<input type='submit' name='mv_click' value='Delete item'>
]]>
- </programlisting>
-</example>
+</programlisting>
__END__
-__NAME__ example-js
-<example>
- <title>Simple button with an embedded custom JavaScript code</title>
- <programlisting>
+__NAME__ example-js: Simple button with an embedded custom JavaScript code
+ <programlisting>
[button text="Click me"]
[javascript]onClick="myOwnOnClickFunction(this);"[/javascript]
[/button]
- </programlisting>
-</example>
+</programlisting>
__END__
View
@@ -83,39 +83,27 @@ See the &glos-umask; glossary entry.
__END__
-__NAME__ example
-<example>
- <title>Basic static page example</title>
- <para>
- Create page named <filename>make-static.html</filename> with the following
- content:
- </para>
- <programlisting>
- [capture-page page=index file=static/index.html umask=022 auto_create_dir=1]
- </programlisting>
- <para>
- This would create the <filename class='directory'>static/</filename>
- directory in your catalog root, and a snapshot of
- <filename>index.html</filename> in it.
- </para>
-</example>
+__NAME__ example: Basic static page example
+Create page named <filename>make-static.html</filename> with the following
+content:
+<programlisting>
+[capture-page page=index file=static/index.html umask=022 auto_create_dir=1]
+</programlisting>
+This would create the <filename class='directory'>static/</filename>
+directory in your catalog root, and a snapshot of
+<filename>index.html</filename> in it.
__END__
-__NAME__ example2
-<example>
- <title>Static page example using scan=</title>
- <para>
- Create page named <filename>make-static2.html</filename> with the following
- content:
- </para>
- <programlisting>
+__NAME__ example2: Static page example using scan=
+Create page named <filename>make-static2.html</filename> with the following
+content:
+<programlisting>
[loop list="Levels,Rulers,Squares"]
[capture-page page="[loop-code]" file="static/cats/[loop-code].html"
scan="fi=products/st=db/co=yes/sf=category/se=[loop-code]"
auto_create_dir=1]
[/loop]
- </programlisting>
-</example>
+</programlisting>
__END__
__NAME__ author
View
@@ -34,15 +34,10 @@ This simple tag sets the default cart name for tags that operate on it
<tag>nitems</tag>).
__END__
-__NAME__ example
-<example>
- <title>Set new default cart name</title>
- <para>
- Place the following on an Interchange page:
- </para>
- <programlisting>
+__NAME__ example: Set new default cart name
+Place the following on an Interchange page:
+<programlisting>
[cart NEW]
- </programlisting>
-</example>
+</programlisting>
__END__
View
@@ -85,20 +85,15 @@ __END__
__NAME__ notes
__END__
-__NAME__ example
-<example>
- <title>Accessing CGI variables</title>
- <para>
- Save the following content to a test page named say,
- <filename>cgitest.html</filename>, then visit
- <literal><![CDATA[cgitest?foo=bar&toad=stool]]></literal> with your browser.
- </para>
- <programlisting>
+__NAME__ example: Accessing CGI variables
+Save the following content to a test page named say,
+<filename>cgitest.html</filename>, then visit
+<literal><![CDATA[cgitest?foo=bar&toad=stool]]></literal> with your browser.
+<programlisting>
<![CDATA[
Value of 'foo': [cgi foo]<br/>
Value of 'toad': [cgi name=toad]<br/>
]]>
- </programlisting>
-</example>
+</programlisting>
__END__
View
@@ -49,14 +49,10 @@ The crypt function is unsuitable for encrypting large quantities of data, not le
__END__
-__NAME__ online
-<example>
- <title>Crypt a string and verify it</title>
- <para>
- Note that this example is of little use in practice, but does show the
- components you can re-use:
- </para>
- <programlisting><![CDATA[
+__NAME__ online: Crypt a string and verify it
+Note that this example is of little use in practice, but does show the
+components you can re-use:
+<programlisting><![CDATA[
<p>
[seti salt][perl]join '', ('.', '/', 0..9, 'A'..'Z', 'a'..'z')[rand 64, rand 64][/perl][/seti]
String "test" crypted with salt "[scratch salt]": [crypt value="test" salt="[scratch salt]"]
@@ -73,7 +69,6 @@ $Tag->crypt("test", $Scratch->{crypted}) eq $Scratch->{crypted} ?
"Password matches." : "Password does not match."
[/perl]
</p>
- ]]></programlisting>
-</example>
+]]></programlisting>
__END__
Oops, something went wrong.

0 comments on commit a23806c

Please sign in to comment.