Introduction
This page experiments with TWiki support for inlining content into wiki pages. This capability is useful for adding file listing and generated tables.
The main tool for inlining content is the INCLUDE command.
Test1 - INCLUDE Plain Text
INCLUDE a plain text attachment named sample.txt
- sample.txt: sample plain text file to test inlining
BEGIN INCLUDE
This is a sample plain text file.
This is line 2.
End of file.
END INCLUDE
Note that the text content of the sample file flowed. Next try the verbatim style.
Test 2 - INCLUDE Plain Text in Verbatim Style
BEGIN INCLUDE
%INCLUDE{"%ATTACHURL%/sample.txt"}%
END INCLUDE
Note that the Verbatim style suppressed the execution of the INCLUDE command.
Test 3 - INCLUDE Plain Text - Raw Option
BEGIN INCLUDE
This is a sample plain text file.
This is line 2.
End of file.
END INCLUDE
Test 4 - INCLUDE Plain Text - Literal Option
BEGIN INCLUDE
This is a sample plain text file.
This is line 2.
End of file.
END INCLUDE
Test 5 - INCLUDE RDF File
INCLUDE a RDF attachment named sample.rdf
BEGIN INCLUDE
EMS 1.0 Service Prototype
END INCLUDE
BEGIN INCLUDE raw on
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
EMS 1.0 Service Prototype
END INCLUDE
BEGIN INCLUDE literal on
EMS 1.0 Service Prototype
END INCLUDE
BEGIN INCLUDE both on
EMS 1.0 Service Prototype
END INCLUDE
Topic revision: r1 - 16 Nov 2010 - 22:04:24 -
ArthurRyman