2024-05-17 02:32:45 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY mako-download-http "https://files.pythonhosted.org/packages/source/M/Mako/Mako-&mako-version;.tar.gz">
|
|
|
|
<!ENTITY mako-download-ftp " ">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="mako" xreflabel="mako-&mako-version;">
|
|
|
|
<?dbhtml filename="mako.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>Mako-&mako-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="mako">
|
|
|
|
<primary sortas="a-mako">mako</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Mako</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<application>Mako</application> is a Python module that implements hyperfast
|
|
|
|
and lightweight templating for the Python platform.
|
|
|
|
</para>
|
|
|
|
|
2024-10-19 02:39:05 +08:00
|
|
|
|
2024-05-17 02:32:45 +08:00
|
|
|
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&mako-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&mako-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Mako</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Build the module:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install the module as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>pip3 install --no-index --find-links=dist --no-cache-dir --no-user Mako</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
mako-render
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2024-08-16 16:14:31 +08:00
|
|
|
/usr/lib/python&python3-majorver;/site-packages/mako and
|
|
|
|
/usr/lib/python&python3-majorver;/site-packages/Mako-&mako-version;.dist-info
|
2024-05-17 02:32:45 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="mako-render">
|
2024-08-16 16:14:31 +08:00
|
|
|
<term><command>mako-render</command></term>
|
2024-05-17 02:32:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
renders a template
|
|
|
|
</para>
|
|
|
|
<indexterm zone="mako mako-render">
|
|
|
|
<primary sortas="c-mako-render">mako-render</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|