Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f578f85e
Commit
f578f85e
authored
Nov 05, 2002
by
mbarnson%sisna.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A rather controversial new entry to the FAQ. See bug 107917. I
decided one way for the Guide, based upon the code I see currently checked in. If I'm wrong, feel free to correct it!
parent
b29dda83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
faq.sgml
docs/sgml/faq.sgml
+35
-0
faq.xml
docs/xml/faq.xml
+35
-0
No files found.
docs/sgml/faq.sgml
View file @
f578f85e
...
...
@@ -1132,6 +1132,41 @@
<title>Bugzilla Hacking</title>
<qandaentry>
<question>
<para>
What kind of style should I use for templatization?
</para>
</question>
<answer>
<para>
Gerv and Myk suggest a 2-space endent, with embedded code sections on
their own line, in line with outer tags. Like this:</para>
<programlisting><![CDATA[
<fred>
[% IF foo %]
<bar>
[% FOREACH x = barney %]
<tr>
<td>
[% x %]
</td>
<tr>
[% END %]
[% END %]
</fred>
]]></programlisting>
<para> Myk also recommends you turn on PRE_CHOMP in the template
initialization to prevent bloating of HTML with unnecessary whitespace.
</para>
<para>Please note that many have differing opinions on this subject,
and the existing templates in Bugzilla espouse both this and a 4-space
style. Either is acceptable; the above is preferred.</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
What bugs are in Bugzilla right now?
...
...
docs/xml/faq.xml
View file @
f578f85e
...
...
@@ -1132,6 +1132,41 @@
<title>
Bugzilla Hacking
</title>
<qandaentry>
<question>
<para>
What kind of style should I use for templatization?
</para>
</question>
<answer>
<para>
Gerv and Myk suggest a 2-space endent, with embedded code sections on
their own line, in line with outer tags. Like this:
</para>
<programlisting>
<![CDATA[
<fred>
[% IF foo %]
<bar>
[% FOREACH x = barney %]
<tr>
<td>
[% x %]
</td>
<tr>
[% END %]
[% END %]
</fred>
]]>
</programlisting>
<para>
Myk also recommends you turn on PRE_CHOMP in the template
initialization to prevent bloating of HTML with unnecessary whitespace.
</para>
<para>
Please note that many have differing opinions on this subject,
and the existing templates in Bugzilla espouse both this and a 4-space
style. Either is acceptable; the above is preferred.
</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
What bugs are in Bugzilla right now?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment