Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

helper: filename #6

Closed
jonschlinkert opened this Issue Mar 21, 2013 · 0 comments

Comments

Projects
None yet
2 participants
Owner

jonschlinkert commented Mar 21, 2013

filename

Returns the file name of a given file, including basename and extension. By default the template only requires the {{filename}} expression

An optional second parameter can be passed

Usage:

{{filename "docs/toc.md"}}

Returns:

toc.md

Of course, this probably seems useless, but when variables are used instead it would be more valuable:

{{filename snippet}}

@ghost ghost assigned doowb Mar 29, 2013

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