Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
.. contents::
Detailed Documentation
This Widget encapsulates the epiclock JavaScript library
http://code.google.com/p/epiclock <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 <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
Change history
First Release
FAQs
Insert Clocks in templates
We found that tw.epiclock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.