User Tools

Site Tools


compiling_source_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

compiling_source_code [2017/10/10 00:39] (current)
Line 1: Line 1:
 +===== Compiling Source Code =====
  
 +The basic format of a //twee// compilation command is very simple, and doesn'​t differ across platforms.
 +
 +<​code>​
 +twee sourcefile sourcefile2 sourcefile3... > output.html
 +</​code>​
 +
 +You pass it a list of files with source code, and direct its output into an HTML page. There are a few optional switches:
 +
 +^ Switch ​  ^ Description ​                                                                  ^ Example ^
 +| -m       | Merges changes with an already existing HTML file.                            | ''​twee -m oldfile.html mysource.tw > newfile.html''​ |
 +| -r    | When coupled with the -m switch, generates an RSS file of recently changed passages. | ''​twee -m oldfile.html -r rss.xml mysource.tw > newfile.html''​ |
 +| -t       | Targets a different platform when creating the output file. If omitted, this targets sugarcane. Other available targets are jonah, tw (TiddlyWiki 1) and tw2 (TiddlyWiki 2.2). | ''​twee -t tw2 mysource.tw > tiddlywiki.html''​ |
compiling_source_code.txt ยท Last modified: 2017/10/10 00:39 (external edit)