Coder Social home page Coder Social logo

linspector / cheetah3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cheetahtemplate3/cheetah3

0.0 1.0 0.0 5.37 MB

Cheetah3 is a free (MIT) and open source template engine for Python.

Home Page: https://cheetahtemplate.org/

License: Other

Shell 0.72% Python 96.17% C 3.12%

cheetah3's Introduction

Cheetah Template 3.3.4a0

Cheetah3 is a free and open source (MIT) Python template engine. It's a fork of the original CheetahTemplate library.

Python 2.7 or 3.4+ is required.

Where is CheetahTemplate3

Site: https://cheetahtemplate.org/

Download: https://pypi.org/project/CT3/

News and changes: https://cheetahtemplate.org/news.html

StackOverflow: https://stackoverflow.com/questions/tagged/cheetah

Mailing lists: https://sourceforge.net/p/cheetahtemplate/mailman/

Development: https://github.com/CheetahTemplate3

Developer Guide: https://cheetahtemplate.org/dev_guide/

Example

Install:

$ pip install CT3 # (or even "ct3")

Below is a simple example of some Cheetah code, as you can see it's practically Python. You can import, inherit and define methods just like in a regular Python module, since that's what your Cheetah templates are compiled to :)

#from Cheetah.Template import Template
#extends Template

#set $people = [{'name' : 'Tom', 'mood' : 'Happy'}, {'name' : 'Dick',
                        'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 'Hairy'}]

<strong>How are you feeling?</strong>
<ul>
    #for $person in $people
        <li>
            $person['name'] is $person['mood']
        </li>
    #end for
</ul>

cheetah3's People

Contributors

tavisrudd avatar phdru avatar mikeorr avatar abbeyj avatar jjinux avatar ianb avatar jbq avatar nsoranzo avatar msabramo avatar mikebonnet avatar js-cfl avatar karmix avatar odidev avatar mikola avatar huangxiaodui avatar yegorich avatar wedebe avatar vstinner avatar swamper78 avatar saiprasad16 avatar kyrios123 avatar cendioossman avatar melor avatar mgorny avatar redbeard0531 avatar navilan avatar schwehr avatar blkkkbvsik avatar dareonion avatar hexaclock avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.