Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would like a line-continuation syntax for EZT #2

Open
GoogleCodeExporter opened this issue Aug 22, 2015 · 4 comments
Open

Would like a line-continuation syntax for EZT #2

GoogleCodeExporter opened this issue Aug 22, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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

@gstein
Copy link
Owner

gstein commented Aug 22, 2015

CC: @cmpilato

@gstein gstein self-assigned this Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants