comp.lang.ada
 help / color / mirror / Atom feed
From: Michael Hardeman <mhardeman25@gmail.com>
Subject: AWS template documentation help
Date: Thu, 20 Dec 2018 14:35:41 -0800 (PST)
Date: 2018-12-20T14:35:41-08:00	[thread overview]
Message-ID: <62da32c9-61b7-4ed1-afdf-9319eff5fe8a@googlegroups.com> (raw)

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?

             reply	other threads:[~2018-12-20 22:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-20 22:35 Michael Hardeman [this message]
2018-12-20 23:39 ` AWS template documentation help Shark8
2018-12-21  0:12   ` Michael Hardeman
2018-12-21  0:20     ` Michael Hardeman
2018-12-21  8:16 ` Per Sandberg
2018-12-21  9:35   ` Michael Hardeman
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox