Skip to content

Instantly share code, notes, and snippets.

@papsl
Last active October 2, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papsl/e0a034a81202e2b3e7f5 to your computer and use it in GitHub Desktop.
Save papsl/e0a034a81202e2b3e7f5 to your computer and use it in GitHub Desktop.
live gist - idea

Using placeholders (inspired by SublimeText snippets)

curl https://api.github.com/users/${0:git user name}/gists --insecure

curl https://api.github.com/users/${0:git user name}/gists --insecure

Using handlebars

curl https://api.github.com/users/{{gitHubUserName}}/gists --insecure

curl https://api.github.com/users/{{gitHubUserName}}/gists --insecure

Using handlebars with model

<h1>Comments</h1>

<div id="comments">
  {{#each comments}}
  <h2><a href="/posts/{{../permalink}}#{{id}}">{{title}}</a></h2>
  <div>{{body}}</div>
  {{/each}}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment