CherrypymakoMAKO-tool voor cherry | |
Download nu |
Cherrypymako Rangschikking & Samenvatting
Advertentie
- Vergunning:
- Freeware
- Prijs:
- FREE
- Naam uitgever:
- Vahid Mardani
- Uitgever website:
- http://pylover.dobisel.com/
Cherrypymako Tags
Cherrypymako Beschrijving
Cherrypymako is een cherryplug-in die Mako-sjabloonmotor, binnen cherry als tool levert.Example: demo.papy: import os.pathimport cherrypaport cherrypymakoimport datetimport cherrypymako.setup () root_dir = os.path.abspath (os.path.dirname (__ bestand__) ) Klasse root (Object): @ cherrypy.expose @ cherry.tools.mako (bestandsnaam = 'index.html') DEF INDEX (ZELF): RETURN {'' Currentime ': datetime.datetime.now ()} _ cp_config = {' Global ': {' Server.Socket_Host ':' 0.0.0.0 ',' server.socket_port ': 1919,' tools.mako.directories ': ,},} Als __Name__ == '__Main__': cherry.quickstart (root (), '', config = _cp_config) index.html:
Cherrypymako Gerelateerde software