summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile2
-rw-r--r--examples/plain_to_html.cpp9
2 files changed, 6 insertions, 5 deletions
diff --git a/examples/Makefile b/examples/Makefile
index d288391..1959b4b 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,5 +1,5 @@
# Uncomment following to enable debug mode:
-# DEBUG = yes
+DEBUG = yes
CC = g++
EXAMPLES = plain_to_html
diff --git a/examples/plain_to_html.cpp b/examples/plain_to_html.cpp
index 9a81652..d123a84 100644
--- a/examples/plain_to_html.cpp
+++ b/examples/plain_to_html.cpp
@@ -2,14 +2,15 @@
#include <html.hpp>
#include <plain.hpp>
#include <file.hpp>
+#include <scrvar.hpp>
int main()
{
- TexoFileExporter exporter(stdout);
- TexoHTMLProducer producer(exporter);
- TexoPlainImporter importer(producer);
- importer.PutStr(
+ TexoExporterFile exporter(stdout);
+ TexoProducerHTML producer(exporter);
+ TexoImporterPlain importer(producer);
+ importer.Put(
"I am a little cute line. \n"
"I am another and that's fine. \n"
"But I am as long as a pine,\n"