Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1738

escaping pystachio variable strings is insane

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.15.0, 0.12.0
    • None
    • Client
    • None

    Description

      If you want to include the bare string {{.Foo}} in a job's cmdline, you currently have to do this: {{&&&&&&&&&&&&.Foo}} - that's twelve ampersands, which is clearly not ideal.

      The pystachio parser nominally uses {{&foo}} to escape {{foo}}, so I guess that parser must get applied at least 11 times between the CLI tool reading the file and the runner actually launching processes.

      MustacheParser.split() has a keep_aliases parameter that tells it not to remove & characters in its output. Perhaps there is a way to enable that for all but the very last round of pystachio parsing?

      Attachments

        Activity

          People

            Unassigned Unassigned
            benley Benjamin Staffin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: