File: page.txt

package info (click to toggle)
rest2web 0.5.2~alpha%2Bsvn-r248-2.3
  • links: PTS
  • area: main
  • in suites: buster
  • size: 5,256 kB
  • ctags: 870
  • sloc: python: 6,285; makefile: 64
file content (56 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
restindex
    page-title: Test of Uservalues
    crumb: Uservalues
/restindex
uservalues
    test1: """A value in *ReST*."""
    test2: A value in <em>HTML</em>
    test3: Never inserted.
/uservalues

==========================
 Testing Uservalues Again
==========================

.. contents::

This is a test of uservalues. It tests the two different templating styles for
inserting uservalues into a page.

You can insert single values, or multiple blocks of code.

Testing Single Values
=====================

This is a test of uservalues. The following paragraph is in ReStructuredText.

    <* test1 *>

The next one is in HTML :

    {esc;test2}

I wonder if it works. {sm;:-)}

This one will be escaped by ``docutils``, and so not executed.

    <% test3 %>

Testing Multiple Code Blocks
============================

<$
    print 'A comment in **ReST**.'
$>

<$

    print
    try:
        print uservalue1
        print
        print uservalue2 + '. {:-)}'
    except NameError:
        print 'Failed to find the uservalues. {sm;:-(}'

$>