Insert Clocks in templates
Project description
.. contents::
Detailed Documentation
**********************
Clock widget for toscawidget and turbogears
===========================================
This Widget encapsulates the epiclock JavaScript library
`http://code.google.com/p/epiclock`_
for inserting clocks and countdowns contents in a standard-friendly manner.
The current epiclock version packaged with this widget is version 3.0
`http://epiclock.googlecode.com/files/epiclock-3.0.fixed.tar.gz`_
From within your controller, simply instantiate an Epiclock
and return this instance to be rendered within your template::
from tw.epiclock import Epiclock
from tg import tmpl_context
...
tmpl_context.my_clock = Epiclock("my_clock")
From within your template, simply call the epiclock::
${tmpl_context.my_clock()}
Another common use is display server time somewhere in a header zone
in lib/helpers.py::
from tw.epiclock import Epiclock
clock = Epiclock("clock", format="j-n-Y G:i:s")
anywhere in templates::
${h.clock()}
custom renderers (retros) are not available is this release
in static jquery.dateformat.js and jquery.epiclock.js are for documentation purpose
only the minimized versions are actually injected in your code
Contributors
************
Main developpers
================
* Nicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>
Change history
**************
New in 0.1
==========
First Release
Detailed Documentation
**********************
Clock widget for toscawidget and turbogears
===========================================
This Widget encapsulates the epiclock JavaScript library
`http://code.google.com/p/epiclock`_
for inserting clocks and countdowns contents in a standard-friendly manner.
The current epiclock version packaged with this widget is version 3.0
`http://epiclock.googlecode.com/files/epiclock-3.0.fixed.tar.gz`_
From within your controller, simply instantiate an Epiclock
and return this instance to be rendered within your template::
from tw.epiclock import Epiclock
from tg import tmpl_context
...
tmpl_context.my_clock = Epiclock("my_clock")
From within your template, simply call the epiclock::
${tmpl_context.my_clock()}
Another common use is display server time somewhere in a header zone
in lib/helpers.py::
from tw.epiclock import Epiclock
clock = Epiclock("clock", format="j-n-Y G:i:s")
anywhere in templates::
${h.clock()}
custom renderers (retros) are not available is this release
in static jquery.dateformat.js and jquery.epiclock.js are for documentation purpose
only the minimized versions are actually injected in your code
Contributors
************
Main developpers
================
* Nicolas Laurance <nicolas[dot]laurance[at]gmail[dot]com>
Change history
**************
New in 0.1
==========
First Release
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 Distribution
File details
Details for the file tw.epiclock-0.1a2dev-20100723.tar.gz.
File metadata
- Download URL: tw.epiclock-0.1a2dev-20100723.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8545ef7846d9cc929c4c3260f67bc15cc45456e168226882ad88f609ece180f7
|
|
| MD5 |
4618325f0200823d7d18897258dbe6eb
|
|
| BLAKE2b-256 |
89c9cf813fb364253bd774d17439a6d7fe4360cb846fdf2e416d123cd6a3f5be
|