Skip to content

Instantly share code, notes, and snippets.

@dreamalligator
Created April 4, 2014 06:25
Show Gist options
  • Save dreamalligator/9969203 to your computer and use it in GitHub Desktop.
Save dreamalligator/9969203 to your computer and use it in GitHub Desktop.
To test the Pelican Liquid Tags plugin.

To test liquid tags plugin.

Place files accordingly:

  • content/pages/sandbox.md
  • content/notebooks/planets.ipynb
  • content/code/catrpee.py (src)
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Title: Sandbox Date: 2014-04-01 Author: Tom Spalding Slug: sandbox Status: hidden Summary: A sandbox to test features available to the blog.

Testing the liquid tag plugin.

##Image Tag {% img http://sfsu.acm.org/images/logos/acm-logo.jpg 200 200 %}

##Youtube Tag {% youtube 2EXpAfV85Ns %}

##Include Code Tag {% include_code catrpee.py cathessire catat %}

and a regular code block

def catatat(katze=3):
	i=0
	rad=''
	while i<katze:
		rad=rad+'cat'
		i=i+1
	rad=rad+'hessire'
	i=0
	rad=rad+'cat'
	while i<katze:
		rad=rad+'at'
		i=i+1
	print rad
 
catatat(1)

##IPython Notebook

See ipython.org/notebook.html and a gallery of interesting IPython Notebooks

{% notebook planets.ipynb %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment