//~OPTIONS
{
  clientRendering:  true,
  autoUpdate:       true,
  lockTemplate:     false,
}

//~ARGUMENTS
{
  fcfClassInner:   fcf.argVal("@{{args.wrap ? 'fcf-wrap-text':''}}@"),
  value:           "content",
  cutHTML:         false,
  cutSize:         false,
  encodeHtml:      true,
  wrap:            false,
}

//~TEMPLATE
%{{
  let text = fcf.str(args.value);
  if (args.cutHTML)
    text = fcf.stripTags(text);
  if (args.cutSize && text.length > args.cutSize)
    text = text.substr(0, args.cutSize-3) + "...";
  if (args.encodeHtml)
    text = fcf.encodeHtml(text);
}}%
@{{text}}@
