TurboGears Genshi quickstart template
Project description
gsquickstart is a TurboGears quickstart template plug-in for Genshi templates.
It will install a paste template which can be used with TurboGears'
``tg-admin quickstart`` command.
Installation
------------
Installation with setuptools::
$easy_install gsquickstart
Usage
-----
Creating a project
~~~~~~~~~~~~~~~~~~
The gsquickstart template is used like any other quickstart template with
tg-admin quickstart, you just have to specify the template name, which is
"tggenshi" (for TurboGears Genshi) with the ``-t`` option template instead
of the default kid template::
$tg-admin quickstart -t tggenshi [project name]
This will install three basic Genshi tempaltes and set up the project
configuration to use Gensi templates as default.
Updating a project
~~~~~~~~~~~~~~~~~~
For updating a project with the basic Genshi templates, change into your
project directory and run::
tg-admin update -t tggenshi
Since the "turbogears" template already installs Kid templates in
``<package>/templates``, they are removed by gsquickstart in a
post-template-creation step. But when update your project dir, the Kid
templates will be created again. Now gsquickstart can not just delete them
again, because they might have been created earlier and on purpose by the
developer.
What the new code does is: if it is an update command, prompt the user,
if the files ``<package>/templates/{login,master,welcome}.kid`` should
be removed (for each file). The default answer is 'n'.
Notice
------
The TurboGears 1.0 documentation is written with the default setting of
Kid & SQLObject in mind. The syntax of Genshi templates is very similar
to that of Kid but there are some differences to bear in mind.
For example, you need to make some changes to your templates, if you use
widgets with Genshi templates: put ``${ET(myform())}`` instead of
``${myform()}`` as a placeholder for widgets in the template.
You can find more information in the `TurboGears documentation`_ and on
the `Genshi website`_.
.. _TurboGears documentation :http://docs.turbogears.org/1.0/GenshiTemplating
.. _Genshi website: http://genshi.edgewall.org/wiki/GenshiFaq
What's new?
-----------
1.0
---
* The quickstart template was stripped of almost all files shared with the
standard "turbogears" template and now inherits from this template instead
of from "tgbase". The only files that are added/overwritten by "tggenshi"
are ``setup.py``, ``<package>/config/app.cfg`` and the Genshi templates
in ``<package>/templates/*.html``. But see the "Updating a project" section
above.
The new template structure makes it easier to stay synchronized with changes
to the standard turbogears template since most files will just be
inherited from.
* Synchronized ``app.cfg_tmpl` and `setup.py_tmpl`` with the latest
"turbogears" template.
1.0Beta2
--------
* Able to be indexed by turbogears cogbin.
It will install a paste template which can be used with TurboGears'
``tg-admin quickstart`` command.
Installation
------------
Installation with setuptools::
$easy_install gsquickstart
Usage
-----
Creating a project
~~~~~~~~~~~~~~~~~~
The gsquickstart template is used like any other quickstart template with
tg-admin quickstart, you just have to specify the template name, which is
"tggenshi" (for TurboGears Genshi) with the ``-t`` option template instead
of the default kid template::
$tg-admin quickstart -t tggenshi [project name]
This will install three basic Genshi tempaltes and set up the project
configuration to use Gensi templates as default.
Updating a project
~~~~~~~~~~~~~~~~~~
For updating a project with the basic Genshi templates, change into your
project directory and run::
tg-admin update -t tggenshi
Since the "turbogears" template already installs Kid templates in
``<package>/templates``, they are removed by gsquickstart in a
post-template-creation step. But when update your project dir, the Kid
templates will be created again. Now gsquickstart can not just delete them
again, because they might have been created earlier and on purpose by the
developer.
What the new code does is: if it is an update command, prompt the user,
if the files ``<package>/templates/{login,master,welcome}.kid`` should
be removed (for each file). The default answer is 'n'.
Notice
------
The TurboGears 1.0 documentation is written with the default setting of
Kid & SQLObject in mind. The syntax of Genshi templates is very similar
to that of Kid but there are some differences to bear in mind.
For example, you need to make some changes to your templates, if you use
widgets with Genshi templates: put ``${ET(myform())}`` instead of
``${myform()}`` as a placeholder for widgets in the template.
You can find more information in the `TurboGears documentation`_ and on
the `Genshi website`_.
.. _TurboGears documentation :http://docs.turbogears.org/1.0/GenshiTemplating
.. _Genshi website: http://genshi.edgewall.org/wiki/GenshiFaq
What's new?
-----------
1.0
---
* The quickstart template was stripped of almost all files shared with the
standard "turbogears" template and now inherits from this template instead
of from "tgbase". The only files that are added/overwritten by "tggenshi"
are ``setup.py``, ``<package>/config/app.cfg`` and the Genshi templates
in ``<package>/templates/*.html``. But see the "Updating a project" section
above.
The new template structure makes it easier to stay synchronized with changes
to the standard turbogears template since most files will just be
inherited from.
* Synchronized ``app.cfg_tmpl` and `setup.py_tmpl`` with the latest
"turbogears" template.
1.0Beta2
--------
* Able to be indexed by turbogears cogbin.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
gsquickstart-1.0.zip
(32.6 kB
view details)
gsquickstart-1.0.tar.bz2
(25.5 kB
view details)
Built Distributions
gsquickstart-1.0-py2.5.egg
(30.4 kB
view details)
gsquickstart-1.0-py2.4.egg
(30.4 kB
view details)
File details
Details for the file gsquickstart-1.0.zip
.
File metadata
- Download URL: gsquickstart-1.0.zip
- Upload date:
- Size: 32.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 905f68a4727fcf297862ce40bd85c0bd3ef79e564e151e76ed0f262e407d1a31 |
|
MD5 | c7ca03131c6f249cd5314212b96b1d9f |
|
BLAKE2b-256 | 8a46a7516fce8ea197e97eb928452f28daee5f06d6387a482acf78cae75cc0cf |
File details
Details for the file gsquickstart-1.0.tar.bz2
.
File metadata
- Download URL: gsquickstart-1.0.tar.bz2
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c2a2a4d661d461787bf031ec8745bc94797c3df9a23cc918b875f170e717fc6 |
|
MD5 | d836d4b1f0f907974b5960c82263721c |
|
BLAKE2b-256 | dc5f940b2570aea49a0209bdf3e811633f6b70bdebd5600de7560ae0d06cef38 |
File details
Details for the file gsquickstart-1.0-py2.5.egg
.
File metadata
- Download URL: gsquickstart-1.0-py2.5.egg
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b45d1b85b36b21f3e1666183c0c3d18c648b52e183329e447b58572d5cb3080 |
|
MD5 | 5822cde32bf3b4f8d0f2a6e6fe5ab369 |
|
BLAKE2b-256 | fecfe6e4e764ca609fe2f55e34a3f1d6330fe83f2915c81d24a42ad14c313c01 |
File details
Details for the file gsquickstart-1.0-py2.4.egg
.
File metadata
- Download URL: gsquickstart-1.0-py2.4.egg
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b2f118010cee2484b896edb37eefdf09a6aa843c830e9d24d5e61b89f817249 |
|
MD5 | f460bdcc4e824ab953ea8fa87665d029 |
|
BLAKE2b-256 | 29b1f64b96ee4662d298c6a7ebef1d0d1ed037896584daaf5051954aae34cb6f |