X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fintro.txt;h=b727bfffa1e47faf9b8abed809f1d973465806ae;hb=c00c787ebcd86ec94285b708db96a20286e57ab0;hp=dccf7d97e3bcd08667d6c89abc293b815a747d62;hpb=2e716fe5e9e2e228d267a88e694cc6671c7a760a;p=xml-template diff --git a/doc/intro.txt b/doc/intro.txt index dccf7d9..b727bff 100644 --- a/doc/intro.txt +++ b/doc/intro.txt @@ -17,11 +17,12 @@ to check out the code and this documentation. There is a lot to be said about design philosophy, but let's first give a simple example to give you the feel of how it works. (The example is in Perl, -but there are also functionally equivalent PHP, Python and Ruby versions; -ports to other languages would be welcome.) +but there are also functionally equivalent PHP, Python, Ruby and C++11 +versions; ports to other languages would be welcome.) Template (simple.xml): + @@ -47,6 +48,7 @@ Code (simple.pl): Result: + @@ -80,6 +82,7 @@ We move on to another useful operation, cloning. Template (clone.xml): + @@ -114,6 +117,7 @@ Code (clone.pl): Result: + @@ -166,6 +170,7 @@ we have a small hack: Template (clone.xml), repeated for your convenience: + @@ -200,6 +205,7 @@ Code (attribute.pl): Result: + @@ -249,8 +255,8 @@ The main thoughts behind XML::Template have been, in no particular order: the entire DOM with wrappers for each language. (Thankfully, by relying on the DOM support in each language, the code so far is under 200 lines per implementation, so maintaining this hopefully shouldn't be much work.) As - proof-of-concept, there are got Perl, PHP, Python and Ruby implementations - that work and feel largely the same (and even a SAX-based Perl + proof-of-concept, there are got Perl, PHP, Python, Ruby and C++11 + implementations that work and feel largely the same (and even a SAX-based Perl implementation, for larger trees that won't fit into memory) -- other implementations are welcome. This is backed up by a test suite, which ensures that all the different implementations return structurally