qtil
advanced-security/qtil-swift 0.0.3
Search

Predicate QlFormat::tpl

A function to create a template string with the given format.

A template is a string that contains placeholders in the form of {key}. These placeholders can be replaced with actual values using the link and text member predicates:

  • link("key", elem, "text") will replace {key} with text and link it to elem.
  • link("key", elem) will replace {key} with a link to elem using elem.toString().
  • text("key", "text") will replace {key} with text without linking it to any element.

Import path

import qtil.format.QLFormat
Template tpl(string format)