~ubuntu-branches/ubuntu/trusty/htp/trusty

« back to all changes in this revision

Viewing changes to homepage/ref/blockdef.htp

  • Committer: Bazaar Package Importer
  • Author(s): Diego Escalante Urrelo
  • Date: 2007-10-21 21:59:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071021215940-90qtozny64s4f1rg
Tags: 1.16-2
* Makefile.config: Hardcode /usr as the PREFIX, it was using /usr/local
  otherwise by unknown reasons.
* src/snprintf.c:
* src/snprintf.h: Remove the asnprintf and asprintf functions since they were
keeping s390 from building and are actually not used, closes: #443616.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
 
<BLOCK syntax>
3
 
<BLOCKDEF NAME="tagname" [OPTION="option1 [option2 ...]"] [GLOBAL] [EXPAND]>
4
 
</BLOCKDEF>
5
 
</BLOCK>
6
 
 
7
 
<BLOCK synopsis>
8
 
 
9
 
<STRONG>BLOCKDEF</STRONG> creates block <A
 
2
<block syntax>
 
3
<blockdef name="tagname" [option="option1 [option2 ...]"] [global] [expand]>
 
4
  ... <use block> ...
 
5
</blockdef>
 
6
</block>
 
7
 
 
8
<block synopsis>
 
9
 
 
10
<strong>BLOCKDEF</strong> creates block <A
10
11
HREF="metatag.html">metatags</A>, which is a fancy way of saying it
11
12
creates new block tags.  A block tag is a tag that takes a whole block
12
 
as implicit parameter.  This block is surounded by the start and end
13
 
tag.  The contents of this block are automatically stored in the block
14
 
macro named BLOCK.
15
 
<P>
16
 
For example:
 
13
as additional parameter.  This block is surrounded by &lt;tagname&gt; and
 
14
&lt;/tagname&gt;.  The contents of this block are automatically stored
 
15
in the block macro named BLOCK.  
 
16
 
 
17
<P> For example:</P>
17
18
 
18
19
<htpcode>
19
 
  <BLOCKDEF NAME="SECTION" OPTION="TITLE">
20
 
   <h1><USE TITLE></h1>
21
 
   <P class="section">
22
 
     <USE BLOCK>
23
 
   </P>
24
 
  </BLOCKDEF>
 
20
  <blockdef name="section" option="title">
 
21
   <h1><use title></h1>
 
22
   <p class="section">
 
23
     <use block>
 
24
   </p>
 
25
  </blockdef>
25
26
 
26
 
  <SECTION TITLE="My Section">
 
27
  <section title="My Section">
27
28
    This is a fancy section.
28
 
  </SECTION>
 
29
  </section>
29
30
</htpcode>
30
 
<P>
 
31
<p>
 
32
All block metatags have the implicit option <a
 
33
href="expand.html">EXPAND</A>, which tells htp to expand the contents
 
34
of the block before the definition is expanded.
 
35
</p>
 
36
<p>
31
37
A more thorough discussion and more elaborate examples are discussed in the
32
 
<A HREF="metatag.html">metatag</A> section.
33
 
 
34
 
</BLOCK>
35
 
 
 
38
<a href="metatag.html">metatag</a> section.
 
39
</p>
 
40
</block>