Applies string interpolation to a given string. For example, if a given
string is Hello ${name}
and the params are {string: 'World'}
, the result
of calling the interpolation is "Hello World".
Typically, this would be used with the pod
object to provide the ability
to refer to pod content: Hello ${pod.meta.title}
, and then providing params
such as: {pod: <Pod instance>}
. The value of pod.meta
would be specified
within amagaki.ts
.
The pod.
A string to interpolate.
The parameters to use for interpolation.
The interpolated string.
Returns data queried from a YAML file. Use by specifying a query, such as
'foo.bar'. This will return the value nested under the keys: {foo: {bar: 'value'}}
.
An object mapping keys to values.
The YAML content at the specified query.
Generated using TypeDoc
Debounces a function so that it's only called once within a window. Adopted from https://github.com/hayes/just-debounce.