/usr/share/gtk-doc/html/ctpl/ch01.html is in libctpl-doc 0.3.3.dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CTPL overview</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="CTPL Reference Manual">
<link rel="up" href="index.html" title="CTPL Reference Manual">
<link rel="prev" href="index.html" title="CTPL Reference Manual">
<link rel="next" href="ch01s02.html" title="Working design">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
<td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td> </td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">CTPL Reference Manual</th>
<td><a accesskey="n" href="ch01s02.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr></table>
<div class="chapter">
<div class="titlepage"><div><div><h2 class="title">
<a name="idp3530784"></a>CTPL overview</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="ch01.html#idp2840400">Introduction</a></span></dt>
<dd><dl><dt><span class="section"><a href="ch01.html#idp3646224">Advantages and disadvantages</a></span></dt></dl></dd>
<dt><span class="section"><a href="ch01s02.html">Working design</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch01s02.html#idp2426336">The lexer</a></span></dt>
<dt><span class="section"><a href="ch01s02.html#idp116304">The parser</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch01s03.html">Templates syntax</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="ch01s03.html#raw-data">Raw data</a></span></dt>
<dt><span class="section"><a href="ch01s03.html#template-blocks">Template blocks</a></span></dt>
<dt><span class="section"><a href="ch01s03.html#idp5473824">Examples</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="environment-description-syntax.html">Environment description syntax</a></span></dt>
<dd><dl>
<dt><span class="section"><a href="environment-description-syntax.html#environment-description-syntax-symbol">Symbol</a></span></dt>
<dt><span class="section"><a href="environment-description-syntax.html#environment-description-syntax-value">Value</a></span></dt>
<dt><span class="section"><a href="environment-description-syntax.html#environment-description-syntax-blank">Blanks</a></span></dt>
<dt><span class="section"><a href="environment-description-syntax.html#environment-description-syntax-comment">Comments</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="ch01s05.html">Input and output encoding</a></span></dt>
</dl></div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="idp2840400"></a>Introduction</h2></div></div></div>
<p>
CTPL is a template library written in C. It allows fast and easy parsing
of templates from many sources (including in-memory data and local and
remote streaming, thanks to GIO) and fine control over template parsing
environment.
</p>
<p>
CTPL depends on the following libraries:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="ulink" href="http://library.gnome.org/devel/glib/" target="_top">GLib</a></span></p></td>
<td><p>
General purpose C utility library
</p></td>
</tr>
<tr>
<td><p><span class="term"><a class="ulink" href="http://library.gnome.org/devel/gio/" target="_top">GIO</a></span></p></td>
<td><p>
GLib's I/O abstraction library
</p></td>
</tr>
</tbody>
</table></div>
<p>
</p>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="idp3646224"></a>Advantages and disadvantages</h3></div></div></div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="idp3672800"></a>Advantages</h4></div></div></div>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>
It is a library, then it can be easily used from programs;
</p></li>
<li class="listitem"><p>
<a class="link" href="ch01s02.html#working-design">Separated lexer and parser</a>;
</p></li>
<li class="listitem"><p>
It is written in portable C;
</p></li>
<li class="listitem"><p>
Simple syntax;
</p></li>
<li class="listitem"><p>
Fast and strict parsing;
</p></li>
<li class="listitem"><p>
Possible in-memory parsing, allowing non-file data parsing and
avoiding I/O-latency, through GIO's
<a href="/usr/share/gtk-doc/html/gio/GMemoryInputStream.html">GMemoryInputStream</a> and
<a href="/usr/share/gtk-doc/html/gio/GMemoryOutputStream.html">GMemoryOutputStream</a>.
</p></li>
</ul></div>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="idp123136"></a>Disadvantages</h4></div></div></div>
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
Since the input is first completely loaded as a token tree in
memory -- which is also one of the advantages -- , it may
consume a little more memory than the input template size.
</p></li></ul></div>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.17</div>
</body>
</html>
|