kwartz 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +10 -3
- data/README.txt +6 -1
- data/bin/kwartz +1 -1
- data/doc-api/classes/Kwartz.html +2 -2
- data/doc-api/classes/Kwartz/Main.html +2 -2
- data/doc-api/created.rid +1 -1
- data/doc-api/files/__/README_txt.html +6 -2
- data/doc-api/files/kwartz/assert_rb.html +1 -1
- data/doc-api/files/kwartz/binding/eperl_rb.html +1 -1
- data/doc-api/files/kwartz/binding/erubis_rb.html +1 -1
- data/doc-api/files/kwartz/binding/eruby_rb.html +1 -1
- data/doc-api/files/kwartz/binding/jstl_rb.html +1 -1
- data/doc-api/files/kwartz/binding/php_rb.html +1 -1
- data/doc-api/files/kwartz/binding/pierubis_rb.html +1 -1
- data/doc-api/files/kwartz/binding/rails_rb.html +1 -1
- data/doc-api/files/kwartz/binding/ruby_rb.html +1 -1
- data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
- data/doc-api/files/kwartz/config_rb.html +1 -1
- data/doc-api/files/kwartz/converter_rb.html +1 -1
- data/doc-api/files/kwartz/defun_rb.html +1 -1
- data/doc-api/files/kwartz/error_rb.html +1 -1
- data/doc-api/files/kwartz/helper/rails_rb.html +1 -1
- data/doc-api/files/kwartz/main_rb.html +2 -2
- data/doc-api/files/kwartz/node_rb.html +1 -1
- data/doc-api/files/kwartz/parser_rb.html +1 -1
- data/doc-api/files/kwartz/translator_rb.html +1 -1
- data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
- data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
- data/doc-api/files/kwartz/util_rb.html +1 -1
- data/doc-api/files/kwartz_rb.html +1 -1
- data/doc/img/fig01.png +0 -0
- data/doc/img/fig02.png +0 -0
- data/doc/img/fig03.png +0 -0
- data/doc/img/fig04.png +0 -0
- data/doc/{p-pattern.html → pattern-catalog.html} +29 -21
- data/doc/pattern-catalog/design.css +51 -0
- data/doc/pattern-catalog/design.html +42 -0
- data/doc/reference.html +23 -261
- data/doc/users-guide.html +70 -44
- data/kwartz.gemspec +13 -9
- data/lib/kwartz.rb +2 -2
- data/lib/kwartz/assert.rb +1 -1
- data/lib/kwartz/binding/eperl.rb +1 -1
- data/lib/kwartz/binding/erubis.rb +1 -1
- data/lib/kwartz/binding/eruby.rb +1 -1
- data/lib/kwartz/binding/jstl.rb +1 -1
- data/lib/kwartz/binding/php.rb +1 -1
- data/lib/kwartz/binding/pierubis.rb +1 -1
- data/lib/kwartz/binding/rails.rb +1 -1
- data/lib/kwartz/binding/ruby.rb +1 -1
- data/lib/kwartz/binding/struts.rb +1 -1
- data/lib/kwartz/config.rb +1 -1
- data/lib/kwartz/converter.rb +1 -1
- data/lib/kwartz/defun.rb +1 -1
- data/lib/kwartz/error.rb +1 -1
- data/lib/kwartz/helper/rails.rb +1 -1
- data/lib/kwartz/main.rb +4 -4
- data/lib/kwartz/node.rb +1 -1
- data/lib/kwartz/parser.rb +1 -1
- data/lib/kwartz/translator.rb +1 -1
- data/lib/kwartz/util.rb +1 -1
- data/lib/kwartz/util/assert-text-equal.rb +1 -1
- data/lib/kwartz/util/testcase-helper.rb +10 -4
- data/test/test-compile.rb +1 -1
- data/test/test-converter.rb +27 -12
- data/test/test-converter.yaml +173 -26
- data/test/test-directives.rb +1 -1
- data/test/test-main.rb +1 -1
- data/test/test-parser.rb +1 -1
- data/test/test-parser.yaml +1 -1
- data/test/test-rails.rb +1 -1
- data/test/test-ruleset.rb +1 -1
- data/test/test-ruleset.yaml +18 -18
- data/test/test.rb +1 -1
- metadata +10 -4
@@ -0,0 +1,51 @@
|
|
1
|
+
.tabs a {
|
2
|
+
border-style: solid;
|
3
|
+
border-color: #006699;
|
4
|
+
border-width: 1px 1px 0px 1px;
|
5
|
+
color: #006699;
|
6
|
+
font-weight: bold;
|
7
|
+
text-decoration:none;
|
8
|
+
padding: 4px 10px 1px 10px;
|
9
|
+
margin: 0px 0px 0px 20px;
|
10
|
+
}
|
11
|
+
.tabs a.selected {
|
12
|
+
background-color:#006699;
|
13
|
+
color:#FFFFFF;
|
14
|
+
}
|
15
|
+
.tabs a:hover, .tabs a:active {
|
16
|
+
background-color: #CCEEFF;
|
17
|
+
}
|
18
|
+
.tabsline {
|
19
|
+
border-style:solit;
|
20
|
+
background-color:#006699;
|
21
|
+
padding:2px;
|
22
|
+
border-width:0;
|
23
|
+
}
|
24
|
+
.menus {
|
25
|
+
border-style: solid;
|
26
|
+
border-color: #006699;
|
27
|
+
border-width: 1px 1px 1px 1px;
|
28
|
+
width:120;
|
29
|
+
}
|
30
|
+
.menus a {
|
31
|
+
color:#006699;
|
32
|
+
padding: 4px 10px 1px 10px;
|
33
|
+
text-decoration:none;
|
34
|
+
}
|
35
|
+
.menus a.selected {
|
36
|
+
font-weight:bold;
|
37
|
+
}
|
38
|
+
.menus a:hover, .menus a:active {
|
39
|
+
text-decoration:underline;
|
40
|
+
}
|
41
|
+
.menu_title {
|
42
|
+
color:#FFFFFF;
|
43
|
+
background-color:#006699;
|
44
|
+
font-weight:bold;
|
45
|
+
padding:3 10 2 10;
|
46
|
+
width:120;
|
47
|
+
}
|
48
|
+
.copyright {
|
49
|
+
font-size:small;
|
50
|
+
color:#999999;
|
51
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<html id="mark:whole">
|
2
|
+
<head>
|
3
|
+
<title>Design Examples</title>
|
4
|
+
<link rel="stylesheet" href="design.css" type="text/css">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
|
8
|
+
<div id="mark:tablist">
|
9
|
+
<div class="tabs" id="mark:tabs">
|
10
|
+
<a href="/" class="" id="mark:tab">Home</a>
|
11
|
+
<a href="/product/" class="selected">Product</a>
|
12
|
+
<a href="/download/" class="">Download</a>
|
13
|
+
<a href="/support/" class="">Support</a>
|
14
|
+
</div>
|
15
|
+
<div class="tabsline">
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<br>
|
20
|
+
|
21
|
+
<div id="mark:menulist">
|
22
|
+
<span class="menu_title" id="value:menu_title">MenuList</span>
|
23
|
+
<div class="menus" id="mark:menus">
|
24
|
+
<a href="/cgi-bin/email.cgi" class="" id="mark:menu">E-Mail</a>
|
25
|
+
<span id="mark:menu_separator"><br></span>
|
26
|
+
<a href="/cgi-bin/board.cgi" class="selected">MesgBoard</a><br>
|
27
|
+
<a href="/cgi-bin/photo.cgi" class="">PhotoAlbum</a><br>
|
28
|
+
<a href="/cgi-bin/greeting.cgi" class="">GreetingCard</a><br>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<br>
|
32
|
+
|
33
|
+
<p> ..... </p>
|
34
|
+
<p> ..... </p>
|
35
|
+
<p> ..... </p>
|
36
|
+
|
37
|
+
<div align="center" class="copyright" id="mark:copyright">
|
38
|
+
Copyright© 2004-2006 kuwata-lab. All Rights Reserved.
|
39
|
+
</div>
|
40
|
+
|
41
|
+
</body>
|
42
|
+
</html>
|
data/doc/reference.html
CHANGED
@@ -13,16 +13,16 @@
|
|
13
13
|
<div class="mainbody">
|
14
14
|
|
15
15
|
<div align="left"><h1>Kwartz-ruby 3.0 Reference Guide</h1></div>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
<p>$Release: 3.1.1 $<br>
|
17
|
+
$Date: 2006-09-30 05:02:08 +0900 (Sat, 30 Sep 2006) $
|
18
|
+
</p>
|
20
19
|
<a name="preface"></a>
|
21
20
|
<h2 class="section1">Preface</h2>
|
22
|
-
<p>This document<sup>(<a href="#fnref:1" name="fnlink:1">*1</a>)</sup> is the reference manual of Kwartz-ruby
|
21
|
+
<p>This document<sup>(<a href="#fnref:1" name="fnlink:1">*1</a>)</sup> is the reference manual of Kwartz-ruby.
|
23
22
|
</p>
|
24
23
|
<p>Kwartz<sup>(<a href="#fnref:2" name="fnlink:2">*2</a>)</sup> is a template system which realized the concept 'Independence of Presentation Logic'.
|
25
24
|
It means that presentation logics are separated from both presentation data (typically HTML file) and business logic layer (typically main program).
|
25
|
+
Kwartz-ruby is an implementation of Kwartz in Ruby.
|
26
26
|
</p>
|
27
27
|
<p>If you are new to Kwartz, see <a href="users-guide.html">Users' Guide</a> at first.
|
28
28
|
</p>
|
@@ -105,8 +105,6 @@ It means that presentation logics are separated from both presentation data (typ
|
|
105
105
|
</li>
|
106
106
|
<li><a href="#directive-replace">replace_element/content_with_element/content</a>
|
107
107
|
</li>
|
108
|
-
<li><a href="#directive-replace2">replace_element_with, replace_content_with</a>
|
109
|
-
</li>
|
110
108
|
</ul>
|
111
109
|
</li>
|
112
110
|
<li><a href="#cmdline">Command-Line Options</a>
|
@@ -585,21 +583,21 @@ presentation data (ex-stag.pdata)</div>
|
|
585
583
|
<div class="program_caption">
|
586
584
|
presentation logic (ex-stag.plogic)</div>
|
587
585
|
<pre class="program">#link1 {
|
588
|
-
<strong>stag:</strong> start_link_tag('list');
|
586
|
+
<strong>stag:</strong> start_link_tag('member/list');
|
589
587
|
}
|
590
588
|
#link2 {
|
591
|
-
<strong>Stag:</strong> start_link_tag('list');
|
589
|
+
<strong>Stag:</strong> start_link_tag('member/list');
|
592
590
|
}
|
593
591
|
#link3 {
|
594
|
-
<strong>STAG:</strong> start_link_tag('list');
|
592
|
+
<strong>STAG:</strong> start_link_tag('member/list');
|
595
593
|
}
|
596
594
|
</pre>
|
597
595
|
<div class="terminal_caption">
|
598
596
|
compile</div>
|
599
597
|
<pre class="terminal">$ kwartz -l php -p ex-stag.plogic ex-stag.pdata
|
600
|
-
<strong><?php echo start_link_tag('list'); ?></strong><img src="button1.png"></a>
|
601
|
-
<strong><?php echo htmlspecialchars(start_link_tag('list')); ?></strong><img src="button2.png"></a>
|
602
|
-
<strong><?php echo start_link_tag('list'); ?></strong><img src="button3.png"></a>
|
598
|
+
<strong><?php echo start_link_tag('member/list'); ?></strong><img src="button1.png"></a>
|
599
|
+
<strong><?php echo htmlspecialchars(start_link_tag('member/list')); ?></strong><img src="button2.png"></a>
|
600
|
+
<strong><?php echo start_link_tag('member/list'); ?></strong><img src="button3.png"></a>
|
603
601
|
</pre>
|
604
602
|
<br>
|
605
603
|
|
@@ -614,13 +612,13 @@ presentation data (ex-stag.pdata)</div>
|
|
614
612
|
<div class="program_caption">
|
615
613
|
presentation logic (ex-stag.plogic)</div>
|
616
614
|
<pre class="program">#link1 {
|
617
|
-
<strong>stag:</strong> fn:start_link_tag('list');
|
615
|
+
<strong>stag:</strong> fn:start_link_tag('member', 'list');
|
618
616
|
}
|
619
617
|
#link2 {
|
620
|
-
<strong>Stag:</strong> fn:start_link_tag('list');
|
618
|
+
<strong>Stag:</strong> fn:start_link_tag('member', 'list');
|
621
619
|
}
|
622
620
|
#link3 {
|
623
|
-
<strong>STAG:</strong> fn:start_link_tag('list');
|
621
|
+
<strong>STAG:</strong> fn:start_link_tag('member', 'list');
|
624
622
|
}
|
625
623
|
</pre>
|
626
624
|
<div class="terminal_caption">
|
@@ -628,9 +626,9 @@ compile</div>
|
|
628
626
|
<pre class="terminal">$ kwartz -l jstl -p ex-stag.plogic ex-stag.pdata
|
629
627
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
630
628
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
631
|
-
<strong>${fn:start_link_tag('list')}</strong><img src="button1.png"></a>
|
632
|
-
<strong>${fn:start_link_tag('list')}</strong><img src="button2.png"></a>
|
633
|
-
<strong><c:out value="${fn:start_link_tag('list')}" escapeXml="false"/></strong><img src="button3.png"></a>
|
629
|
+
<strong>${fn:start_link_tag('member', 'list')}</strong><img src="button1.png"></a>
|
630
|
+
<strong>${fn:start_link_tag('member', 'list')}</strong><img src="button2.png"></a>
|
631
|
+
<strong><c:out value="${fn:start_link_tag('member', 'list')}" escapeXml="false"/></strong><img src="button3.png"></a>
|
634
632
|
</pre>
|
635
633
|
<br>
|
636
634
|
|
@@ -645,21 +643,21 @@ presentation data (ex-stag.pdata)</div>
|
|
645
643
|
<div class="program_caption">
|
646
644
|
presentation logic (ex-stag.plogic)</div>
|
647
645
|
<pre class="program">#link1 {
|
648
|
-
<strong>stag:</strong> start_link_tag('list');
|
646
|
+
<strong>stag:</strong> start_link_tag('member/list');
|
649
647
|
}
|
650
648
|
#link2 {
|
651
|
-
<strong>Stag:</strong> start_link_tag('list');
|
649
|
+
<strong>Stag:</strong> start_link_tag('member/list');
|
652
650
|
}
|
653
651
|
#link3 {
|
654
|
-
<strong>STAG:</strong> start_link_tag('list');
|
652
|
+
<strong>STAG:</strong> start_link_tag('member/list');
|
655
653
|
}
|
656
654
|
</pre>
|
657
655
|
<div class="terminal_caption">
|
658
656
|
compile</div>
|
659
657
|
<pre class="terminal">$ kwartz -l eperl -p ex-stag.plogic ex-stag.pdata
|
660
|
-
<strong><?= start_link_tag('list') !></strong><img src="button1.png"></a>
|
661
|
-
<strong><?= encode_entities(start_link_tag('list')) !></strong><img src="button2.png"></a>
|
662
|
-
<strong><?= start_link_tag('list') !></strong><img src="button3.png"></a>
|
658
|
+
<strong><?= start_link_tag('member/list') !></strong><img src="button1.png"></a>
|
659
|
+
<strong><?= encode_entities(start_link_tag('member/list')) !></strong><img src="button2.png"></a>
|
660
|
+
<strong><?= start_link_tag('member/list') !></strong><img src="button3.png"></a>
|
663
661
|
</pre>
|
664
662
|
<br>
|
665
663
|
|
@@ -3252,242 +3250,6 @@ compile</div>
|
|
3252
3250
|
<br>
|
3253
3251
|
|
3254
3252
|
|
3255
|
-
<a name="directive-replace2"></a>
|
3256
|
-
<h3 class="section2">replace_element_with, replace_content_with</h3>
|
3257
|
-
<p>'replace_element_with' and 'replace_content_with' directives replace element
|
3258
|
-
or content with other element or content.
|
3259
|
-
</p>
|
3260
|
-
<a name="directive-replace2-eruby"></a>
|
3261
|
-
<h4 class="section3">Ruby</h4>
|
3262
|
-
<div class="program_caption">
|
3263
|
-
presentation data (ex-replace2.pdata)</div>
|
3264
|
-
<pre class="program"><div <strong>id="mark:link"</strong>>
|
3265
|
-
back to <a href="/">home</a>.
|
3266
|
-
</div>
|
3267
|
-
|
3268
|
-
<!-- replace element with other element -->
|
3269
|
-
<p <strong>kw:d="replace_element_with: element(link)"</strong>>
|
3270
|
-
back to home
|
3271
|
-
</p>
|
3272
|
-
|
3273
|
-
<!-- replace element with other content-->
|
3274
|
-
<p <strong>kw:d="replace_element_with: content(link)"</strong>>
|
3275
|
-
back to home
|
3276
|
-
</p>
|
3277
|
-
|
3278
|
-
<!-- replace content with other element -->
|
3279
|
-
<p <strong>kw:d="replace_content_with: element(link)"</strong>>
|
3280
|
-
back to home
|
3281
|
-
</p>
|
3282
|
-
|
3283
|
-
<!-- replace content with other content -->
|
3284
|
-
<p <strong>kw:d="replace_content_with: content(link)"</strong>>
|
3285
|
-
back to home
|
3286
|
-
</p>
|
3287
|
-
</pre>
|
3288
|
-
<div class="terminal_caption">
|
3289
|
-
compile</div>
|
3290
|
-
<pre class="terminal">$ kwartz -l eruby ex-replace2.pdata
|
3291
|
-
<div>
|
3292
|
-
back to <a href="/">home</a>.
|
3293
|
-
</div>
|
3294
|
-
|
3295
|
-
<!-- replace element with other element -->
|
3296
|
-
<div>
|
3297
|
-
back to <a href="/">home</a>.
|
3298
|
-
</div>
|
3299
|
-
|
3300
|
-
<!-- replace element with other content-->
|
3301
|
-
back to <a href="/">home</a>.
|
3302
|
-
|
3303
|
-
<!-- replace content with other element -->
|
3304
|
-
<p>
|
3305
|
-
<div>
|
3306
|
-
back to <a href="/">home</a>.
|
3307
|
-
</div>
|
3308
|
-
</p>
|
3309
|
-
|
3310
|
-
<!-- replace content with other content -->
|
3311
|
-
<p>
|
3312
|
-
back to <a href="/">home</a>.
|
3313
|
-
</p>
|
3314
|
-
</pre>
|
3315
|
-
<br>
|
3316
|
-
|
3317
|
-
<a name="directive-replace2-php"></a>
|
3318
|
-
<h4 class="section3">PHP</h4>
|
3319
|
-
<div class="program_caption">
|
3320
|
-
presentation data (ex-replace2.pdata)</div>
|
3321
|
-
<pre class="program"><div kw:d="id(link)">
|
3322
|
-
back to <a href="/">home</a>.
|
3323
|
-
</div>
|
3324
|
-
|
3325
|
-
<!-- replace element with other element -->
|
3326
|
-
<p kw:d="replace_element_with(element(link))">
|
3327
|
-
back to home
|
3328
|
-
</p>
|
3329
|
-
|
3330
|
-
<!-- replace element with other content-->
|
3331
|
-
<p kw:d="replace_element_with(content(link))">
|
3332
|
-
back to home
|
3333
|
-
</p>
|
3334
|
-
|
3335
|
-
<!-- replace content with other element -->
|
3336
|
-
<p kw:d="replace_content_with(element(link))">
|
3337
|
-
back to home
|
3338
|
-
</p>
|
3339
|
-
|
3340
|
-
<!-- replace content with other content -->
|
3341
|
-
<p kw:d="replace_content_with(content(link))">
|
3342
|
-
back to home
|
3343
|
-
</p>
|
3344
|
-
</pre>
|
3345
|
-
<div class="terminal_caption">
|
3346
|
-
compile</div>
|
3347
|
-
<pre class="terminal">$ kwartz -l php ex-replace2.pdata
|
3348
|
-
<div>
|
3349
|
-
back to <a href="/">home</a>.
|
3350
|
-
</div>
|
3351
|
-
|
3352
|
-
<!-- replace element with other element -->
|
3353
|
-
<div>
|
3354
|
-
back to <a href="/">home</a>.
|
3355
|
-
</div>
|
3356
|
-
|
3357
|
-
<!-- replace element with other content-->
|
3358
|
-
back to <a href="/">home</a>.
|
3359
|
-
|
3360
|
-
<!-- replace content with other element -->
|
3361
|
-
<p>
|
3362
|
-
<div>
|
3363
|
-
back to <a href="/">home</a>.
|
3364
|
-
</div>
|
3365
|
-
</p>
|
3366
|
-
|
3367
|
-
<!-- replace content with other content -->
|
3368
|
-
<p>
|
3369
|
-
back to <a href="/">home</a>.
|
3370
|
-
</p>
|
3371
|
-
</pre>
|
3372
|
-
<br>
|
3373
|
-
|
3374
|
-
<a name="directive-replace2-jstl"></a>
|
3375
|
-
<h4 class="section3">JSP</h4>
|
3376
|
-
<div class="program_caption">
|
3377
|
-
presentation data (ex-replace2.pdata)</div>
|
3378
|
-
<pre class="program"><div kw:d="id(link)">
|
3379
|
-
back to <a href="/">home</a>.
|
3380
|
-
</div>
|
3381
|
-
|
3382
|
-
<!-- replace element with other element -->
|
3383
|
-
<p kw:d="replace_element_with(element(link))">
|
3384
|
-
back to home
|
3385
|
-
</p>
|
3386
|
-
|
3387
|
-
<!-- replace element with other content-->
|
3388
|
-
<p kw:d="replace_element_with(content(link))">
|
3389
|
-
back to home
|
3390
|
-
</p>
|
3391
|
-
|
3392
|
-
<!-- replace content with other element -->
|
3393
|
-
<p kw:d="replace_content_with(element(link))">
|
3394
|
-
back to home
|
3395
|
-
</p>
|
3396
|
-
|
3397
|
-
<!-- replace content with other content -->
|
3398
|
-
<p kw:d="replace_content_with(content(link))">
|
3399
|
-
back to home
|
3400
|
-
</p>
|
3401
|
-
</pre>
|
3402
|
-
<div class="terminal_caption">
|
3403
|
-
compile</div>
|
3404
|
-
<pre class="terminal">$ kwartz -l jstl ex-replace2.pdata
|
3405
|
-
<div>
|
3406
|
-
back to <a href="/">home</a>.
|
3407
|
-
</div>
|
3408
|
-
|
3409
|
-
<!-- replace element with other element -->
|
3410
|
-
<div>
|
3411
|
-
back to <a href="/">home</a>.
|
3412
|
-
</div>
|
3413
|
-
|
3414
|
-
<!-- replace element with other content-->
|
3415
|
-
back to <a href="/">home</a>.
|
3416
|
-
|
3417
|
-
<!-- replace content with other element -->
|
3418
|
-
<p>
|
3419
|
-
<div>
|
3420
|
-
back to <a href="/">home</a>.
|
3421
|
-
</div>
|
3422
|
-
</p>
|
3423
|
-
|
3424
|
-
<!-- replace content with other content -->
|
3425
|
-
<p>
|
3426
|
-
back to <a href="/">home</a>.
|
3427
|
-
</p>
|
3428
|
-
</pre>
|
3429
|
-
<br>
|
3430
|
-
|
3431
|
-
<a name="directive-replace2-eperl"></a>
|
3432
|
-
<h4 class="section3">Perl</h4>
|
3433
|
-
<div class="program_caption">
|
3434
|
-
presentation data (ex-replace2.pdata)</div>
|
3435
|
-
<pre class="program"><div kw:d="id(link)">
|
3436
|
-
back to <a href="/">home</a>.
|
3437
|
-
</div>
|
3438
|
-
|
3439
|
-
<!-- replace element with other element -->
|
3440
|
-
<p kw:d="replace_element_with(element(link))">
|
3441
|
-
back to home
|
3442
|
-
</p>
|
3443
|
-
|
3444
|
-
<!-- replace element with other content-->
|
3445
|
-
<p kw:d="replace_element_with(content(link))">
|
3446
|
-
back to home
|
3447
|
-
</p>
|
3448
|
-
|
3449
|
-
<!-- replace content with other element -->
|
3450
|
-
<p kw:d="replace_content_with(element(link))">
|
3451
|
-
back to home
|
3452
|
-
</p>
|
3453
|
-
|
3454
|
-
<!-- replace content with other content -->
|
3455
|
-
<p kw:d="replace_content_with(content(link))">
|
3456
|
-
back to home
|
3457
|
-
</p>
|
3458
|
-
</pre>
|
3459
|
-
<div class="terminal_caption">
|
3460
|
-
compile</div>
|
3461
|
-
<pre class="terminal">$ kwartz -l eperl ex-replace2.pdata
|
3462
|
-
<div>
|
3463
|
-
back to <a href="/">home</a>.
|
3464
|
-
</div>
|
3465
|
-
|
3466
|
-
<!-- replace element with other element -->
|
3467
|
-
<div>
|
3468
|
-
back to <a href="/">home</a>.
|
3469
|
-
</div>
|
3470
|
-
|
3471
|
-
<!-- replace element with other content-->
|
3472
|
-
back to <a href="/">home</a>.
|
3473
|
-
|
3474
|
-
<!-- replace content with other element -->
|
3475
|
-
<p>
|
3476
|
-
<div>
|
3477
|
-
back to <a href="/">home</a>.
|
3478
|
-
</div>
|
3479
|
-
</p>
|
3480
|
-
|
3481
|
-
<!-- replace content with other content -->
|
3482
|
-
<p>
|
3483
|
-
back to <a href="/">home</a>.
|
3484
|
-
</p>
|
3485
|
-
</pre>
|
3486
|
-
<br>
|
3487
|
-
|
3488
|
-
<br>
|
3489
|
-
|
3490
|
-
|
3491
3253
|
<br>
|
3492
3254
|
|
3493
3255
|
|