From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:a945:: with SMTP id x5mr442068iti.26.1545345342015; Thu, 20 Dec 2018 14:35:42 -0800 (PST) X-Received: by 2002:aca:c703:: with SMTP id x3mr132149oif.5.1545345341488; Thu, 20 Dec 2018 14:35:41 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!q69no12170itb.0!news-out.google.com!v141ni30ita.0!nntp.google.com!q69no12169itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 20 Dec 2018 14:35:41 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.207.83.89; posting-account=AgomvAoAAAAj6rtZlNDUf1S1XVXbXDpg NNTP-Posting-Host: 73.207.83.89 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <62da32c9-61b7-4ed1-afdf-9319eff5fe8a@googlegroups.com> Subject: AWS template documentation help From: Michael Hardeman Injection-Date: Thu, 20 Dec 2018 22:35:41 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55088 Date: 2018-12-20T14:35:41-08:00 List-Id: Running this code: Templates.Set_Tag_Separators (Start_With => "'@", Stop_With => "/"); Templates.Insert (Translations, Templates.Assoc ("foo", "'bar/baz")); Put_Line (Templates.Translate ("test '@foo/one/two/three' test", Translations)); Yields the following error: raised TEMPLATES_PARSER.TEMPLATE_ERROR : Unknown attribute name "@foo" I expected it to print: test 'bar/baz/one/two/three' test If I remove the initial ' in Start_With it works ok, but if I keep the ' I get this strange error. I assume there might be some undocumented feature for the templates, but I can't find anything having to do with "attribute". Does anyone know what this is?