[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[22f9c48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[5fe69261] | 4 | <!ENTITY % general-entities SYSTEM "../../../general.ent">
|
---|
[22f9c48] | 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY Mako-download-http "&pymodules-dl;/M/Mako/Mako-&mako-version;.tar.gz">
|
---|
[22f9c48] | 8 | <!ENTITY Mako-download-ftp " ">
|
---|
[569925c7] | 9 | <!ENTITY Mako-md5sum "&mako-md5sum;">
|
---|
[2f7217b1] | 10 | <!ENTITY Mako-size "380 KB">
|
---|
| 11 | <!ENTITY Mako-buildsize "2.7 MB (add 1.2 MB for tests)">
|
---|
[68c50e0] | 12 | <!ENTITY Mako-time "less than 0.1 SBU (with tests)">
|
---|
[22f9c48] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin Mako -->
|
---|
[0499056] | 16 | <sect2 id="Mako" xreflabel="Mako-&mako-version;">
|
---|
[22f9c48] | 17 |
|
---|
| 18 | <title>Mako-&mako-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="Mako">
|
---|
| 21 | <primary sortas="a-Mako">Mako</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to Mako Module</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>Mako</application> is a <application>Python</application>
|
---|
| 29 | module that implements hyperfast and lightweight templating for the
|
---|
| 30 | <application>Python</application> platform.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[a73fc762] | 33 | &lfs120_checked;
|
---|
[36de390] | 34 |
|
---|
[22f9c48] | 35 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&Mako-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&Mako-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &Mako-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &Mako-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &Mako-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &Mako-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
[68c50e0] | 69 | <bridgehead renderas="sect4">Mako Dependencies</bridgehead>
|
---|
[22f9c48] | 70 |
|
---|
[68c50e0] | 71 | <bridgehead renderas="sect5">Optional (for Testing)</bridgehead>
|
---|
| 72 | <para role="optional">
|
---|
| 73 | <xref linkend="pytest"/>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
[22f9c48] | 76 | </sect3>
|
---|
| 77 |
|
---|
| 78 | <sect3 role="installation">
|
---|
| 79 | <title>Installation of Mako</title>
|
---|
[fa411f6e] | 80 |
|
---|
[22f9c48] | 81 | <para>
|
---|
[698c3986] | 82 | Build the module:
|
---|
[22f9c48] | 83 | </para>
|
---|
| 84 |
|
---|
[db244ae2] | 85 | &build-wheel;
|
---|
[fa411f6e] | 86 |
|
---|
[22f9c48] | 87 | <para>
|
---|
[698c3986] | 88 | Install the module as the &root; user:
|
---|
[22f9c48] | 89 | </para>
|
---|
[fa411f6e] | 90 |
|
---|
[db244ae2] | 91 | <screen role="root"><userinput>&install-wheel; Mako</userinput></screen>
|
---|
[fa411f6e] | 92 |
|
---|
[68c50e0] | 93 | <para>
|
---|
| 94 | To test the installation, issue <command>pytest</command>.
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
[22f9c48] | 97 | </sect3>
|
---|
[fa411f6e] | 98 |
|
---|
[698c3986] | 99 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[5fe69261] | 100 | href="../../../xincludes/pip3-cmd-explain.xml"/>
|
---|
[fa411f6e] | 101 |
|
---|
[22f9c48] | 102 | <sect3 role="content">
|
---|
| 103 | <title>Contents</title>
|
---|
| 104 |
|
---|
| 105 | <segmentedlist>
|
---|
| 106 | <segtitle>Installed Programs</segtitle>
|
---|
| 107 | <segtitle>Installed Libraries</segtitle>
|
---|
| 108 | <segtitle>Installed Directories</segtitle>
|
---|
| 109 |
|
---|
| 110 | <seglistitem>
|
---|
| 111 | <seg>
|
---|
[bc38b45] | 112 | mako-render
|
---|
[22f9c48] | 113 | </seg>
|
---|
| 114 | <seg>
|
---|
| 115 | None
|
---|
| 116 | </seg>
|
---|
| 117 | <seg>
|
---|
[698c3986] | 118 | /usr/lib/python&python3-majorver;/site-packages/mako and
|
---|
[68c50e0] | 119 | /usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;.dist-info
|
---|
[22f9c48] | 120 | </seg>
|
---|
| 121 | </seglistitem>
|
---|
| 122 | </segmentedlist>
|
---|
| 123 |
|
---|
[72c62e4] | 124 | <variablelist>
|
---|
| 125 | <bridgehead renderas="sect5">Short Descriptions</bridgehead>
|
---|
| 126 | <?dbfo list-presentation="list"?>
|
---|
| 127 | <?dbhtml list-presentation="table"?>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="mako-render">
|
---|
| 130 | <term><command>mako-render</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>
|
---|
| 133 | renders a template
|
---|
| 134 | </para>
|
---|
| 135 | <indexterm zone="Mako mako-render">
|
---|
| 136 | <primary sortas="b-mako-render">mako-render</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
| 141 | </variablelist>
|
---|
| 142 |
|
---|
[22f9c48] | 143 | </sect3>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|