comp.lang.ada
 help / color / mirror / Atom feed
* AWS template documentation help
@ 2018-12-20 22:35 Michael Hardeman
  2018-12-20 23:39 ` Shark8
  2018-12-21  8:16 ` Per Sandberg
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Hardeman @ 2018-12-20 22:35 UTC (permalink / 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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-21  9:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 22:35 AWS template documentation help Michael Hardeman
2018-12-20 23:39 ` 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

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