craftcms-prune
craftcms-prune copied to clipboard
Allow single element
It would be great if this allowed a single entry rather than an array of entries.
Hey @russback ... Perhaps something like this ...
{{ craft.entries.section('news').first() | prune(['title', 'body'], {'single':true}) | json_encode() | raw }}