Package

ViewHelpers

ViewHelper Documentation

v:count.substring

Counts number of lines in a string.

Usage examples

<v:count.substring string="{myString}">{haystack}</v:count.substring> (output for example `2`

{haystack -> v:count.substring(string: myString)} when used inline

<v:count.substring string="{myString}" haystack="{haystack}" />

{v:count.substring(string: myString, haystack: haystack)}

Arguments

haystack string

String to count substring in, if not provided as tag content

string string

Substring to count occurrences of

ViewHelper Resources

Schema Resources