Skip to main content

Plim is a Python port of Ruby's Slim template language built on top of Mako Templates

Project description

Plim

https://pypip.in/v/Plim/badge.png https://pypip.in/d/Plim/badge.png https://api.travis-ci.org/avanov/Plim.png https://coveralls.io/repos/avanov/Plim/badge.png?branch=develop

Plim is a Python port of Ruby’s Slim template language built on top of Mako Templates. It uses Mako’s preprocessor feature to translate its syntax into a valid HTML/Mako markup.

For more information visit the Documentation Page.

Changelog

Version 0.9

  • 0.9.4

    • Hotfix: plimc no longer crashes with TypeError in Python3 environments

      when it writes bytes to sys.stdout.

  • 0.9.3

    • Hotfix: Fix UnicodeEncodeError in plimc when it writes to STDOUT.

  • 0.9.2

  • 0.9.1

  • 0.9.0

    • Change: Pyramid adapter now relies on Pyramid>=1.5a2 and pyramid_mako>=0.3.1.

    • Change: The package now depends on Mako>=0.9.0.

    • Change: Sass/Scss extension now requires PyScss>=1.2.0.post3.

    • Change: Pyramid adapter’s plim.file_extension configuration option is deprecated.

      The config.add_plim_renderer() directive is provided instead.

Version 0.8

  • 0.8.9

    • Bugfix: Use sys.maxsize instead of unavailable sys.maxint on Python 3.

  • 0.8.8

    • Hotfix: Make Plim working with a development version of pyScss for Python-3.x setups.

  • 0.8.7

    • Bugfix: Pyramid adapter is now compatible with the 1.5a2+ version of the framework.

    • Change: default template file extension

      used in pyramid bindings is changed from “.plm” to “.plim”.

  • 0.8.6

    • Hotfix: fixed assertion error in handlebars parser.

  • 0.8.5

  • 0.8.4

    • Hotfix: updated links to github.

  • 0.8.3

    • Hotfix: prevent lexer from parsing embedded markup inside style and script blocks.

  • 0.8.2

    • Feature: added support for Embedded Markup.

    • Feature: plimc utility is now able to output plain HTML.

  • 0.8.1

  • 0.8.0

    • Feature: added support for dynamic attributes unpacker (an equivalent to Slim’s splat attributes).

Version 0.7

  • 0.7.14

    • Hotfix: fixed bug with unicode handling.

  • 0.7.13

    • Hotfix: fixed bug with static unicode attributes.

  • 0.7.12

    • Unnecessary newline characters at the end of literal blocks have been removed.

    • Added the command-line tool plimc.

  • 0.7.11

    • Fixed bug that had to do with incorrect parsing of multi-line dynamic class attributes.

    • Fixed bug that had to do with passing incorrect data to plim parser in babel adapter.

  • 0.7.10 Fixed bug with unicode error in python block. Thanks to sqrabs@github!

  • 0.7.9 Added babel message extraction plugin.

  • 0.7.8 Expanded range of possible numeric values that don’t require double-quoting.

  • 0.7.7

    • Fixed bug with linebreaks without trailing newline character.

    • Fixed bug with missing explicit whitespace after =, and ==, line indicators.

  • 0.7.6 Fixed bug with incorrect parsing of static boolean attributes.

  • 0.7.5 Fixed bug with comment and content blocks separated by empty lines.

  • 0.7.4 Added -stylus extension.

  • 0.7.3 Fix bug with literal one-liners.

  • 0.7.1 Fixed installation error caused by missing README.rst.

  • 0.7.0 Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Plim-0.9.4.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

Plim-0.9.4-py2.7.egg (46.0 kB view details)

Uploaded Egg

File details

Details for the file Plim-0.9.4.tar.gz.

File metadata

  • Download URL: Plim-0.9.4.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Plim-0.9.4.tar.gz
Algorithm Hash digest
SHA256 b688517e60c5c21617913ebf6735ecd77c1adcf1ea48ffb1a65062cba1d5c086
MD5 9eeebb28e2e2d7af975e90078948a262
BLAKE2b-256 c0c3530c71acdf7e0b662f3b4c0af97eac20a4e82dbf01537b6462ac1b1b9687

See more details on using hashes here.

File details

Details for the file Plim-0.9.4-py2.7.egg.

File metadata

  • Download URL: Plim-0.9.4-py2.7.egg
  • Upload date:
  • Size: 46.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Plim-0.9.4-py2.7.egg
Algorithm Hash digest
SHA256 1f95eab9aaffb748d5148b0fa4df27ef790dabf9758200e2c4345275802c7b29
MD5 52ff898bb27a04de43f6409ec0075077
BLAKE2b-256 ef544d22f310c370bd58e1d9d5995ef9de37f9e0db028ef4d876e0e38a29816f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page