Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Internet > HTTP (WWW)

    HamlPy 0.80.4

    Download button

    No screenshots available
    Downloads: 281  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jesse Miller | More programs
    Other/Proprietary Li... / FREE
    March 27th, 2012, 01:17 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    HamlPy description

    HAML like syntax for Django templates

    HamlPy is a tool for Django developers who want to use a HAML like syntax for their templates. HamlPy is not a template engine in itself but simply a compiler which will convert HamlPy files into templates that Django can understand.

    But wait, what is HAML? HAML is an incredible template engine written in Ruby used a lot in the Rails community. You can read more about it here

    Syntax

    Almost all of the XHTML syntax of HAML is preserved.

    #profile
     .left.column
     #date 2010/02/18
     #address Toronto, ON
     .right.column
     #bio Jesse Miller


    turns into..

    < div id='profile' >
     < div class='left column' >
     < div id='date' >2010/02/18< /div >
     < div id='address' >Toronto, ON< /div >
     < /div >
     < div class='right column' >
     < div id='bio' >Jesse Miller< /div >
     < /div >
    < /div >


    The main difference is instead of interpretting Ruby, or even Python we instead can create Django Tags and Variables

    %ul#atheletes
     - for athelete in athelete_list
     %li.athelete= athelete.name
     - endfor

    turns into..

    < ul id='atheletes' >
     {% for athelete in athelete_list %}
     < li class='athelete' >{{ athelete.name }}< /li >
     {% endfor %}
    < /ul >



    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    HAML syntax | Django template | Django | HAML | syntax



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM