Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Last active August 29, 2015 14:00
Show Gist options
  • Save jonschlinkert/11326491 to your computer and use it in GitHub Desktop.
Save jonschlinkert/11326491 to your computer and use it in GitHub Desktop.
WIP, I'll add to this conversion guide as I think of things.

Tags that needs to be converted

_.doc() changed to docs()

The docs() tag is for including markdown files from the local ./docs directory.

  • old: {%= _.doc("foo.md") %}
  • new: {%= docs("foo") %}

Note that the underscore (_.) is gone and the .md extension is no longer needed.

_.include() changed to include()

The include() tag is for including markdown files from verb-readme-includes

  • old: {%= _.doc("foo.md") %}
  • new: {%= docs("foo") %}

Note that the underscore (_.) is gone and the .md extension is no longer needed.

_.contrib() changed to contrib()

The contrib() tag is for including markdown files from verb-contrib-templates, these are used by the assemble core team as a convenience

  • old: {%= _.contrib("foo.md") %}
  • new: {%= contrib("foo") %}

Note that the underscore (_.) is gone and the .md extension is no longer needed.

Other tags you might need to convert

  • copyright tag should be {%= copyright() %} (note the parentheses)
  • toc tag should be {%= toc() %} (note the parentheses)
  • license tag should be {%= license() %} (note the parentheses)
  • date tag should be {%= date("YYYY-MM-DD") %}
@Melindrea
Copy link

  • toc tag should be {%= toc() %} (note the parentheses)

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