File: README

package info (click to toggle)
kid 0.6.3-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 588 kB
  • ctags: 588
  • sloc: python: 2,447; makefile: 5; xml: 4
file content (31 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (6)
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
Kid Static File Demo
====================

The `sysinfo.kid` file illustrates some of the features of the kid
template language. There are a variety of methods of executing the
template. Try them all to get a feel for what's possible with kid
templates:

   * Execute using the `kid` command line utility:

        $ kid sysinfo.kid
        [template output to stdout]

   * Play around using interactive python:

        $ python
        $ Python 2.3.3 (#2, Dec 23 2003, 22:56:29) 
        [GCC 3.1 20020420 (prerelease)] on darwin
        Type "help", "copyright", "credits" or "license" for more information.
        >>> import kid
        >>> kid.enable_import()
        >>> import sysinfo
        >>> s = sysinfo.serialize()
        >>> print s
        [lots of stuff to stdout]
        >>> fo = open('/tmp/kid-test', 'wb')
        >>> sysinfo.write(fo)
        >>> fo.close()
        >>> print open('/tmp/kid-test', 'r').read()
        [lots of stuff to stdout]