Skip to content

jsbin/octopress-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

jsbin octopress plugin

Given a bin url, generates the embed code for jsbin with defined panels. A bin url is either just the code: abcefg or you can include the revision abcefg/4 or you can point to latest: abcefg/latest. If you don't specify a revision, latest will be automatically selected.

  • panels: html, js, css, console, output (default: html,css,js,output)

Syntax

{% jsbin bin [panels] %}

Examples:

Input:

{% jsbin exedab %}

Output:

<a class="jsbin-embed" href="http://jsbin.com/exedab/latest/embed?output">JS Bin</a><script src="http://static.jsbin.com/js/embed.js"></script>

Input:

{% jsbin exedab js,html %}

Output:

<a class="jsbin-embed" href="http://jsbin.com/exedab/latest/embed?js,html">JS Bin</a><script src="http://static.jsbin.com/js/embed.js"></script>

Contributors

About

jsbin octopress plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages