- From: <bugzilla@jessica.w3.org>
- Date: Fri, 15 Feb 2013 19:56:32 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21017
Bug ID: 21017
Summary: [Templates]: handle white space inside templates in a
way that allows templates to be more human readable
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Component Model
Assignee: dglazkov@chromium.org
Reporter: jacobr@google.com
QA Contact: public-webapps-bugzilla@w3.org
Blocks: 15476
Most existing html template systems such as Mustache and Closure Templates
strip some white space from templates.
This makes it easier for users to write templates in a way that us human
readable. The issue is acute once templates support syntax for expressing
conditionals. At that point, it is common for templates to have 400 characters
of template code generate a single line of output.
For example, consider the following <templates> we wrote using experimental
syntax to enable loops and conditionals.
https://github.com/dart-lang/dart-api-app/blob/c65256f1ac4ea680f145355c3ae204fe195b3e43/client/web/doc_link.html
These templates all need to avoid accidental white space so we end up with
unreadable ~400 character lines.
-Jacob
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 15 February 2013 19:56:38 UTC