Skip to content

Should Fluid allow for the parsing of a set of non-tag statements? #732

@deanebarker

Description

@deanebarker

I'm doing some work where Fluid statements are written without tags, and then injected into a {% liquid tag prior to being parsed:

var statements = @"
  assign name = 'Deane'
  echo name
";

var source = @$"
{% liquid
{statements}
%}}";

_parser.TryParse(source, out var template, out var error);

I'm wondering if there should be a ParseStatements method on FluidParser that does this internally rather than depend on the string manipulation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions