From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: AWS template documentation help
Date: Fri, 21 Dec 2018 09:16:49 +0100
Date: 2018-12-21T09:16:49+01:00 [thread overview]
Message-ID: <Rj1TD.162213$%55.21750@fx10.am4> (raw)
In-Reply-To: <62da32c9-61b7-4ed1-afdf-9319eff5fe8a@googlegroups.com>
Why not just use the default ones "@_" and "_@" ??
/P
On 12/20/18 11:35 PM, Michael Hardeman wrote:
> 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?
>
next prev parent reply other threads:[~2018-12-21 8:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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