Skip to content

Instantly share code, notes, and snippets.

@jasongraham
jasongraham / less_converter.rb
Created October 22, 2010 04:14
A Jekyll plugin to convert a .less file to .css
module Jekyll
# Compiled LESS CSS into CSS. You must specify an empty YAML front matter
# at the beginning of the file.
# .less -> .css
class LessConverter < Converter
safe true
priority :low
pygments_prefix "\n"
pygments_suffix "\n"
@jasongraham
jasongraham / textilize_cgit.py
Created January 9, 2011 23:43
Used by the cgit 'about-filter' to parse a textile file.
#!/usr/bin/env python
#
# Uses python-textile to convert a textile document to the body
# of an HTML document to display with cgit (http://hjemli.net/git/cgit/).
#
# Install:
#
# 1- Install python-textile ( sudo apt-get install python-textile )
# 2- Copy this script to /usr/local/bin/textilize_cgit.py (with exec rights)
# 3- Add this statement into the your cgit configuration:
@jasongraham
jasongraham / markdownize_cgit.py
Created January 9, 2011 23:55
Used by the cgit 'about-filter' to parse a markdown file.
#!/usr/bin/env python
#
# Copyright 2011, Jason Graham
#
# Uses python-markdown to convert a markdown document to the body
# of an HTML document to display with cgit (http://hjemli.net/git/cgit/).
#
# Install:
#
# 1- Install python-markdown ( sudo apt-get install python-markdown )