summaryrefslogtreecommitdiff
path: root/examples/plain_to_html.cpp
blob: d123a84d0598c861ca9dea5ea3a4c569abac5273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <html.hpp>
#include <plain.hpp>
#include <file.hpp>
#include <scrvar.hpp>


int main()
{
    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"
        "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;
}