summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/filter_html.cpp17
-rw-r--r--example/makefile24
-rw-r--r--example/plain_to_html.cpp21
3 files changed, 0 insertions, 62 deletions
diff --git a/example/filter_html.cpp b/example/filter_html.cpp
deleted file mode 100644
index a1957c3..0000000
--- a/example/filter_html.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdio.h>
-#include <html.hpp>
-#include <file.hpp>
-
-int main()
-{
- TexoFileExporter exporter(stdout);
- TexoHTMLProducer producer(exporter);
- TexoHTMLImporter importer(producer);
- importer.PutStr(
- "<script>EVIL MAGIC</script></p>\n"
- "<a href='#'>Some</a> br:<br/>\n"
- "<p class='evil_too'>And paragraphs work well too...</p>\n"
- "<b>You</b> <i>can</i> <del>use</del> <ins>some</ins> <p>witchcraft.\n"
- );
- return 0;
-}
diff --git a/example/makefile b/example/makefile
deleted file mode 100644
index 39d4db7..0000000
--- a/example/makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# Uncomment following to enable debug mode:
-# DEBUG = yes
-
-CC = g++
-EXAMPLES = plain_to_html filter_html
-
-CFLAGS = -Wall
-ifeq '$(DEBUG)' 'yes'
-CFLAGS += -g -O0
-else
-CFLAGS += -O3
-endif
-
-INCLUDE = -I ../src
-LFLAGS = -L.. -ltexo
-
-
-default: $(EXAMPLES)
-
-%: %.cpp
- $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@
-
-clean:
- rm -f $(EXAMPLES)
diff --git a/example/plain_to_html.cpp b/example/plain_to_html.cpp
deleted file mode 100644
index 9a81652..0000000
--- a/example/plain_to_html.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <stdio.h>
-#include <html.hpp>
-#include <plain.hpp>
-#include <file.hpp>
-
-
-int main()
-{
- TexoFileExporter exporter(stdout);
- TexoHTMLProducer producer(exporter);
- TexoPlainImporter importer(producer);
- importer.PutStr(
- "I am a little cute line. \n"
- "I am another and that's fine. \n"
- "But I am as long as a pine,\n"
- "so lets drink a glass of wine.\n\n"
- "Second paragraph was started here. \n"
- "Take your bananas and go home, seer.\n"
- );
- return 0;
-}