Modifier: ensure_left


Ensures that the string begins with a specified string. If it doesn’t, it will now.

links:
  - statamic.com
  - http://wilderborn.com
{{ links }}
  <li>{{ value ensure_left="http://" }}</li>
{{ /links }}
<li>http://statamic.com</li>
<li>http://wilderborn.com</li>

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016