Skip to content

Would like a line-continuation syntax for EZT #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
A complex series of EZT directives in a whitespace-sensitive context can
get really ugly, really fast.  Something that might help is a
line-continuation code for EZT.  Perhaps [\]?

Here's an example (using the proposed continuation sequence) from ViewVC,
where we have to do a bunch of EZT mumbojumbo to print out a sequent of
path components and separators.  We don't want whitespace in there because
that affects copy-n-paste of the paths, but ideally we don't want this
whole chunk of logic on a single line in the template file, either:

{{{
[if-any roots_href]<a href="[roots_href]">root</a>[end][\]
[if-any nav_path]<span class="pathdiv">/</span>[\]
[for nav_path][\]
[if-any nav_path.href]<a href="[nav_path.href]">[end][\]
[if-index nav_path last]<span class="thisitem">[end][\]
[nav_path.name][\]
[if-index nav_path last]</span>[end][if-any nav_path.href]</a>[end][\]
[if-index nav_path last][else]<span class="pathdiv">[end][\]
[end]
[end]
}}}

Original issue reported on code.google.com by cmpilato on 18 Aug 2008 at 6:04

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions