Tutorial: Use Strings.js to create Permalinks
This example makes use of
strings.parser()
andstrings.process()
to dynamically generate permalinks from local file paths.
Before we get started, it's important to note that although we're going to use three different methods to accomplish our goal, .propstring()
, .parser()
, and .template()
, we can accomplish the same thing with one method: .process()
. But, the point of this tutorial is to demonstrate how to create reusable templates and parsers, and as a result you'll learn how .process()
works along the way.
Now, on to the subject of this tutorial!