-ct is a web template system written in C. It allows embedding C code within HTML (or anything else for that matter). The pages are then translated to C code and complied into an executable which can be by a web server though CGI.
+ct is a web template system written in C. It allows embedding C code within
+HTML (or anything else for that matter). The pages are then translated to C
+code and complied into an executable which can be used by a web server though
+CGI.
-It is used on for the pileus.org and AWeather homepages.
+It is used for the pileus.org and AWeather homepages.
-Lackey is a ncurses calendar client for viewing (and eventually editing) iCalendar files.
+Lackey is a ncurses calendar client for viewing (and eventually editing)
+iCalendar files.
+
+Source Code
+-----------
+Source code is available in git and [gitweb](/git/?p=lackey)
+
+ git clone git://pileus.org/lackey
mkinit is an alternate init system that uses the Plan 9 mk program to perform
dependency resolution and parallel startup.
+
+Source Code
+-----------
+Source code is available in git and [gitweb](/git/?p=mkinit)
+
+ git clone git://pileus.org/mkinit
vpaste is a pastebin that uses Vim for syntax highlighting.
-<http://vpaste.net/>
+The pastebin
+------------
+* <http://vpaste.net/>
+
+Source Code
+-----------
+Source code is available in git and [gitweb](/git/?p=vpaste)
+
+ git clone git://pileus.org/vpaste
+
+Embedding examples
+------------------
+vpaste allows pastes to be embedded in external websites:
+
+<script type="text/javascript" src="http://vpaste.net/embed.js?ft=sh">
+ #!/bin/bash
+
+ echo Hello, World > test.txt
+</script>
+
+This can be done by including code in the script tag itself, as in the above
+example, or by linking to an existing paste:
+
+<script type="text/javascript" src="http://vpaste.net/embed.js?vpaste"></script>
+
+A third way to use the embedding script is to include it once, possibly in the
+in the header, and then call the `format_code('pre','vpaste')` function later
+on to perform syntax highlighting on all the `<pre class="vpaste">` tags.
+
+In this case, slightly more care must be taken to properly escape HTML
+characters scuh as `<` and `>`.
+
+<pre class="vpaste" title="ft=c">
+ #include <stdio.h>
+
+ int main(int argc, char **argv)
+ {
+ printf("hello, world");
+ return 0;
+ }
+</pre>
+
+<script type="text/javascript">format_code('pre', 'vpaste');</script>