Permalink
Browse files

Version upgrade. Docs update.

  • Loading branch information...
1 parent 7ff069f commit 1d6ac9deab41a57d3b6c8ef8613067d8308a469e @avanov committed Jun 21, 2012
Showing with 48 additions and 2 deletions.
  1. +3 −0 CHANGES
  2. +1 −1 docs/conf.py
  3. +43 −0 docs/en/extensions.txt
  4. +1 −1 setup.py
View
@@ -5,6 +5,9 @@ Changelog
Version 0.7
------------
+- 0.7.4
+ Added -stylus extension.
+
- 0.7.3
Fix bug with literal one-liners.
View
@@ -50,7 +50,7 @@
# The short X.Y version.
version = '0.7'
# The full version, including alpha/beta/rc tags.
-release = '0.7.3'
+release = '0.7.4'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
View
@@ -78,6 +78,49 @@ produces
}</style>
+Stylus
+~~~~~~~~~
+
+Plim uses `stylus <https://github.com/bkad/python-stylus>`_ package to translate
+`stylus <http://learnboost.github.com/stylus/>`_ markup to plain CSS.
+You can start Stylus block with the ``-stylus`` construct. The output will be
+wrapped with ``<style></style>`` tags.
+
+For example,
+
+.. code-block:: plim
+
+ - stylus
+ @import 'nib'
+ body
+ background: linear-gradient(top, white, black)
+
+ border-radius()
+ -webkit-border-radius arguments
+ -moz-border-radius arguments
+ border-radius arguments
+
+ a.button
+ border-radius 5px
+
+produces
+
+.. code-block:: html
+
+ <style>body {
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #000));
+ background: -webkit-linear-gradient(top, #fff 0%, #000 100%);
+ background: -moz-linear-gradient(top, #fff 0%, #000 100%);
+ background: -o-linear-gradient(top, #fff 0%, #000 100%);
+ background: -ms-linear-gradient(top, #fff 0%, #000 100%);
+ background: linear-gradient(top, #fff 0%, #000 100%);
+ }
+ a.button {
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ }</style>
+
Markdown
~~~~~~~~
View
@@ -11,7 +11,7 @@
setup(
name='Plim',
- version='0.7.3',
+ version='0.7.4',
packages=find_packages(exclude=['tests']),
# Plim is a preprocessor for Mako template language.
# But it doesn't depend on the Mako package itself.

0 comments on commit 1d6ac9d

Please sign in to comment.