Skip to main content

Plim

https://img.shields.io/pypi/v/Plim.svg Requirements Status https://img.shields.io/pypi/dm/Plim.svg https://github.com/avanov/Plim/workflows/CI/badge.svg?branch=develop https://coveralls.io/repos/github/avanov/Plim/badge.svg?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

1.0.0

  • Dropped support for Python 2.x

  • Test suite switched from Nose to Pytest

  • CI switched from Travis CI to Github Actions

Version 0.9

  • 0.9.12

    • Feature: dashes are now allowed in html tag names.

  • 0.9.11

    • Hotfix: Fix incorrect parsing of templates with windows-style newlines (CR+LF).

  • 0.9.10

    • Hotfix: Fix plimc’s inability to find a custom preprocessors module in the current working dir.

  • 0.9.9

    • Hotfix: Fix UnicodeEncodeError in -def blocks with unicode strings as default argument values.

  • 0.9.8

    • Change: Stylus extension no longer depends on the nib package.

  • 0.9.7

    • Hotfix: Include requirements.txt into the distribution.

  • 0.9.6

    • Hotfix: Conditional statements parser now can handle strings containing inline tag separator sequences (#27).

  • 0.9.5

    • Hotfix: Fix plimc unicode decoding regression introduced by the previous hotfix.

  • 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.

Metadata

Release files for Plim 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Plim 1.0.0
File Size Uploaded
Plim-1.0.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Plim 1.0.0
File Interpreter ABI Platform
Plim-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.8 kB

Release files / Plim-1.0.0.tar.gz

Download URL Plim-1.0.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c5bfcbd9d0d9142e09765af417c46f9bac4fbb823e9bb4bcc264e0ed04030f3b
BLAKE2b-256 checksum
How to use checksums
17df7b53b2f8d3bb4b40058026bf92030e825540d9700919ab153d7783ec162c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / Plim-1.0.0-py3-none-any.whl

Download URL Plim-1.0.0-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fe11cc61479d5f4b513c5dce3c904fbeb07de7ff13d1c4040fb9a82c46bdb45
BLAKE2b-256 checksum
How to use checksums
6cb5bef2df3dfdbb004e6467205b7a0858afb9bc9ab91674b832beadcb4a79c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.9.12

3 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.14

2 release files

0.7.13

2 release files

0.7.11

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page