aboutsummaryrefslogtreecommitdiff
path: root/mktpl
diff options
context:
space:
mode:
Diffstat (limited to 'mktpl')
-rw-r--r--mktpl/README26
1 files changed, 26 insertions, 0 deletions
diff --git a/mktpl/README b/mktpl/README
new file mode 100644
index 0000000..85a2fe3
--- /dev/null
+++ b/mktpl/README
@@ -0,0 +1,26 @@
+ README
+
+`mktpl' is a simple UNIX program that compiles template files (.t)
+to C files (.tc). Template files support special syntax (<% ... %>)
+that may contain C code.
+
+For example, the template
+
+ This will be printed.
+ <%
+ /* This C code will be executed. */
+ for(i = 0; i<10; i++) printf("Hello World!\n");
+ strcpy(s, "This");
+ %>
+ <%= s %> will be evaluated and printed as a string.
+
+is compiled to the following C code:
+
+ printf("This will be printed.\n ");
+ /* This C code will be executed. */
+ for(i = 0; i<10; i++) printf("Hello World!\n");
+ strcpy(s, "This");
+
+ printf("\n");
+ printf("%s", s );
+ printf(" will be evaluated and printed as a string.");