[docs] xmldocs - docelic modified 3 files
docs at icdevgroup.org
docs at icdevgroup.org
Fri Oct 8 17:07:17 EDT 2004
User: docelic
Date: 2004-10-08 21:07:17 GMT
Modified: refs download
Added: refs jsq jsqn
Log:
- 2 new items + little lowercase fix
Revision Changes Path
1.3 +1 -1 xmldocs/refs/download
rev 1.3, prev_rev 1.2
Index: download
===================================================================
RCS file: /var/cvs/xmldocs/refs/download,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- download 6 Oct 2004 20:50:16 -0000 1.2
+++ download 8 Oct 2004 21:07:16 -0000 1.3
@@ -1,5 +1,5 @@
__NAME__ purpose
-Disable any output interpolation not to corrupt verbatim content download
+disable any output interpolation not to corrupt verbatim content download
__END__
1.1 xmldocs/refs/jsq
rev 1.1, prev_rev 1.0
Index: jsq
===================================================================
__NAME__ purpose
return a string for use in JavaScript, quoted and with variables substituted
__END__
__NAME__ see also
jsqn
__END__
__NAME__ author
&mheins;, &ICDEVGROUP;
__END__
__NAME__ description
<tag>jsq</tag> tag quotes (escapes) strings and performs basic variable
substitution, for use in JavaScript code blocks.
</para><para>
This is mostly used for long string which are hard to prepare manually.
</para><para>
<tag>jsquote</tag> is an alias for <tag>jsq</tag>.
__END__
__NAME__ example
<example>
<title>Basic example</title>
<para>
Here's an example of JavaScript code and the output it would generate,
once expanded by Interchange:
</para>
<programlisting>
<script>
var astring = 'just an insert';
var somevar = [jsq] Big long string you don't
want to have to quote for JS, and you want to
insert the variable $astring.[/jsq];
</script>
</programlisting>
<para>
Expands to:
</para>
<programlisting>
<script>
var astring = 'just an insert';
var somevar = " Big long string you don't" +
' want to have to quote for JS, and you want to' +
' insert the variable ' + astring + '.';
</script>
</programlisting>
</example>
__END__
1.1 xmldocs/refs/jsqn
rev 1.1, prev_rev 1.0
Index: jsqn
===================================================================
__NAME__ purpose
return a string for use in JavaScript, quoted, without variables substituted
__END__
__NAME__ see also
jsq
__END__
__NAME__ author
&mheins;, &ICDEVGROUP;
__END__
__NAME__ description
<tag>jsqn</tag> tag quotes (escapes) strings (without performing variable
substitution), for use in JavaScript code blocks.
</para><para>
This is mostly used for long string which are hard to prepare manually.
__END__
__NAME__ example
<example>
<title>Basic example</title>
<para>
Here's an example of JavaScript code and the output it would generate,
once expanded by Interchange:
</para>
<programlisting>
<script>
var astring = 'just an insert';
var somevar = [jsqn] Big long string you don't
want to have to quote for JS, and you want to
insert the variable $astring.[/jsqn];
</script>
</programlisting>
<para>
Expands to:
</para>
<programlisting>
<script>
var astring = 'just an insert';
var somevar = " Big long string you don't" +
' want to have to quote for JS, and you want to' +
' insert the variable $astring.';
</script>
</programlisting>
</example>
__END__
More information about the docs
mailing list