Skip to content

Instantly share code, notes, and snippets.

@tracend
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracend/f861b81d087c68b99412 to your computer and use it in GitHub Desktop.
Save tracend/f861b81d087c68b99412 to your computer and use it in GitHub Desktop.
Handlebars.copyright: render copyright text #handlebars #helper #cc

Handlebars: Copyright

Simple helper to render copyright text

Examples

{{copyright}}

renders:

Copyright © 201X. All rights reserved.

{{copyright '2013-'}}

renders:

Copyright © 2013-201X. All rights reserved.

{{copyright '2013-' '<a href="http://kdi.co/" rel="external">K&amp;D Interactive</a>'}}

renders:

Copyright © 2013-201X, K&D Interactive. All rights reserved.

Options

This helper allows two arguments:

  • prefix: text placed before the running year. Mostly used for previous years.
  • suffix: text placed after the running year. Mostly used for company name.

Credits

Created by Makis Tracend ( @tracend )

License

Released under the MIT license](http://makesites.org/licenses/MIT)

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