kwartz 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/ChangeLog +10 -3
  2. data/README.txt +6 -1
  3. data/bin/kwartz +1 -1
  4. data/doc-api/classes/Kwartz.html +2 -2
  5. data/doc-api/classes/Kwartz/Main.html +2 -2
  6. data/doc-api/created.rid +1 -1
  7. data/doc-api/files/__/README_txt.html +6 -2
  8. data/doc-api/files/kwartz/assert_rb.html +1 -1
  9. data/doc-api/files/kwartz/binding/eperl_rb.html +1 -1
  10. data/doc-api/files/kwartz/binding/erubis_rb.html +1 -1
  11. data/doc-api/files/kwartz/binding/eruby_rb.html +1 -1
  12. data/doc-api/files/kwartz/binding/jstl_rb.html +1 -1
  13. data/doc-api/files/kwartz/binding/php_rb.html +1 -1
  14. data/doc-api/files/kwartz/binding/pierubis_rb.html +1 -1
  15. data/doc-api/files/kwartz/binding/rails_rb.html +1 -1
  16. data/doc-api/files/kwartz/binding/ruby_rb.html +1 -1
  17. data/doc-api/files/kwartz/binding/struts_rb.html +1 -1
  18. data/doc-api/files/kwartz/config_rb.html +1 -1
  19. data/doc-api/files/kwartz/converter_rb.html +1 -1
  20. data/doc-api/files/kwartz/defun_rb.html +1 -1
  21. data/doc-api/files/kwartz/error_rb.html +1 -1
  22. data/doc-api/files/kwartz/helper/rails_rb.html +1 -1
  23. data/doc-api/files/kwartz/main_rb.html +2 -2
  24. data/doc-api/files/kwartz/node_rb.html +1 -1
  25. data/doc-api/files/kwartz/parser_rb.html +1 -1
  26. data/doc-api/files/kwartz/translator_rb.html +1 -1
  27. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +1 -1
  28. data/doc-api/files/kwartz/util/testcase-helper_rb.html +2 -2
  29. data/doc-api/files/kwartz/util_rb.html +1 -1
  30. data/doc-api/files/kwartz_rb.html +1 -1
  31. data/doc/img/fig01.png +0 -0
  32. data/doc/img/fig02.png +0 -0
  33. data/doc/img/fig03.png +0 -0
  34. data/doc/img/fig04.png +0 -0
  35. data/doc/{p-pattern.html → pattern-catalog.html} +29 -21
  36. data/doc/pattern-catalog/design.css +51 -0
  37. data/doc/pattern-catalog/design.html +42 -0
  38. data/doc/reference.html +23 -261
  39. data/doc/users-guide.html +70 -44
  40. data/kwartz.gemspec +13 -9
  41. data/lib/kwartz.rb +2 -2
  42. data/lib/kwartz/assert.rb +1 -1
  43. data/lib/kwartz/binding/eperl.rb +1 -1
  44. data/lib/kwartz/binding/erubis.rb +1 -1
  45. data/lib/kwartz/binding/eruby.rb +1 -1
  46. data/lib/kwartz/binding/jstl.rb +1 -1
  47. data/lib/kwartz/binding/php.rb +1 -1
  48. data/lib/kwartz/binding/pierubis.rb +1 -1
  49. data/lib/kwartz/binding/rails.rb +1 -1
  50. data/lib/kwartz/binding/ruby.rb +1 -1
  51. data/lib/kwartz/binding/struts.rb +1 -1
  52. data/lib/kwartz/config.rb +1 -1
  53. data/lib/kwartz/converter.rb +1 -1
  54. data/lib/kwartz/defun.rb +1 -1
  55. data/lib/kwartz/error.rb +1 -1
  56. data/lib/kwartz/helper/rails.rb +1 -1
  57. data/lib/kwartz/main.rb +4 -4
  58. data/lib/kwartz/node.rb +1 -1
  59. data/lib/kwartz/parser.rb +1 -1
  60. data/lib/kwartz/translator.rb +1 -1
  61. data/lib/kwartz/util.rb +1 -1
  62. data/lib/kwartz/util/assert-text-equal.rb +1 -1
  63. data/lib/kwartz/util/testcase-helper.rb +10 -4
  64. data/test/test-compile.rb +1 -1
  65. data/test/test-converter.rb +27 -12
  66. data/test/test-converter.yaml +173 -26
  67. data/test/test-directives.rb +1 -1
  68. data/test/test-main.rb +1 -1
  69. data/test/test-parser.rb +1 -1
  70. data/test/test-parser.yaml +1 -1
  71. data/test/test-rails.rb +1 -1
  72. data/test/test-ruleset.rb +1 -1
  73. data/test/test-ruleset.yaml +18 -18
  74. data/test/test.rb +1 -1
  75. 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&copy; 2004-2006 kuwata-lab. All Rights Reserved.
39
+ </div>
40
+
41
+ </body>
42
+ </html>
@@ -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
- <div align="left">
17
- last update: $Date: 2006-06-01 08:44:37 +0900 (Thu, 01 Jun 2006) $<br>
18
- </div>
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 3.0.
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>&lt;?php echo start_link_tag('list'); ?&gt;</strong>&lt;img src="button1.png"&gt;&lt;/a&gt;
601
- <strong>&lt;?php echo htmlspecialchars(start_link_tag('list')); ?&gt;</strong>&lt;img src="button2.png"&gt;&lt;/a&gt;
602
- <strong>&lt;?php echo start_link_tag('list'); ?&gt;</strong>&lt;img src="button3.png"&gt;&lt;/a&gt;
598
+ <strong>&lt;?php echo start_link_tag('member/list'); ?&gt;</strong>&lt;img src="button1.png"&gt;&lt;/a&gt;
599
+ <strong>&lt;?php echo htmlspecialchars(start_link_tag('member/list')); ?&gt;</strong>&lt;img src="button2.png"&gt;&lt;/a&gt;
600
+ <strong>&lt;?php echo start_link_tag('member/list'); ?&gt;</strong>&lt;img src="button3.png"&gt;&lt;/a&gt;
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
  &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
630
628
  &lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %&gt;
631
- <strong>${fn:start_link_tag('list')}</strong>&lt;img src="button1.png"&gt;&lt;/a&gt;
632
- <strong>${fn:start_link_tag('list')}</strong>&lt;img src="button2.png"&gt;&lt;/a&gt;
633
- <strong>&lt;c:out value="${fn:start_link_tag('list')}" escapeXml="false"/&gt;</strong>&lt;img src="button3.png"&gt;&lt;/a&gt;
629
+ <strong>${fn:start_link_tag('member', 'list')}</strong>&lt;img src="button1.png"&gt;&lt;/a&gt;
630
+ <strong>${fn:start_link_tag('member', 'list')}</strong>&lt;img src="button2.png"&gt;&lt;/a&gt;
631
+ <strong>&lt;c:out value="${fn:start_link_tag('member', 'list')}" escapeXml="false"/&gt;</strong>&lt;img src="button3.png"&gt;&lt;/a&gt;
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>&lt;?= start_link_tag('list') !&gt;</strong>&lt;img src="button1.png"&gt;&lt;/a&gt;
661
- <strong>&lt;?= encode_entities(start_link_tag('list')) !&gt;</strong>&lt;img src="button2.png"&gt;&lt;/a&gt;
662
- <strong>&lt;?= start_link_tag('list') !&gt;</strong>&lt;img src="button3.png"&gt;&lt;/a&gt;
658
+ <strong>&lt;?= start_link_tag('member/list') !&gt;</strong>&lt;img src="button1.png"&gt;&lt;/a&gt;
659
+ <strong>&lt;?= encode_entities(start_link_tag('member/list')) !&gt;</strong>&lt;img src="button2.png"&gt;&lt;/a&gt;
660
+ <strong>&lt;?= start_link_tag('member/list') !&gt;</strong>&lt;img src="button3.png"&gt;&lt;/a&gt;
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">&lt;div <strong>id="mark:link"</strong>&gt;
3265
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3266
- &lt;/div&gt;
3267
-
3268
- &lt;!-- replace element with other element --&gt;
3269
- &lt;p <strong>kw:d="replace_element_with: element(link)"</strong>&gt;
3270
- back to home
3271
- &lt;/p&gt;
3272
-
3273
- &lt;!-- replace element with other content--&gt;
3274
- &lt;p <strong>kw:d="replace_element_with: content(link)"</strong>&gt;
3275
- back to home
3276
- &lt;/p&gt;
3277
-
3278
- &lt;!-- replace content with other element --&gt;
3279
- &lt;p <strong>kw:d="replace_content_with: element(link)"</strong>&gt;
3280
- back to home
3281
- &lt;/p&gt;
3282
-
3283
- &lt;!-- replace content with other content --&gt;
3284
- &lt;p <strong>kw:d="replace_content_with: content(link)"</strong>&gt;
3285
- back to home
3286
- &lt;/p&gt;
3287
- </pre>
3288
- <div class="terminal_caption">
3289
- compile</div>
3290
- <pre class="terminal">$ kwartz -l eruby ex-replace2.pdata
3291
- &lt;div&gt;
3292
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3293
- &lt;/div&gt;
3294
-
3295
- &lt;!-- replace element with other element --&gt;
3296
- &lt;div&gt;
3297
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3298
- &lt;/div&gt;
3299
-
3300
- &lt;!-- replace element with other content--&gt;
3301
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3302
-
3303
- &lt;!-- replace content with other element --&gt;
3304
- &lt;p&gt;
3305
- &lt;div&gt;
3306
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3307
- &lt;/div&gt;
3308
- &lt;/p&gt;
3309
-
3310
- &lt;!-- replace content with other content --&gt;
3311
- &lt;p&gt;
3312
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3313
- &lt;/p&gt;
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">&lt;div kw:d="id(link)"&gt;
3322
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3323
- &lt;/div&gt;
3324
-
3325
- &lt;!-- replace element with other element --&gt;
3326
- &lt;p kw:d="replace_element_with(element(link))"&gt;
3327
- back to home
3328
- &lt;/p&gt;
3329
-
3330
- &lt;!-- replace element with other content--&gt;
3331
- &lt;p kw:d="replace_element_with(content(link))"&gt;
3332
- back to home
3333
- &lt;/p&gt;
3334
-
3335
- &lt;!-- replace content with other element --&gt;
3336
- &lt;p kw:d="replace_content_with(element(link))"&gt;
3337
- back to home
3338
- &lt;/p&gt;
3339
-
3340
- &lt;!-- replace content with other content --&gt;
3341
- &lt;p kw:d="replace_content_with(content(link))"&gt;
3342
- back to home
3343
- &lt;/p&gt;
3344
- </pre>
3345
- <div class="terminal_caption">
3346
- compile</div>
3347
- <pre class="terminal">$ kwartz -l php ex-replace2.pdata
3348
- &lt;div&gt;
3349
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3350
- &lt;/div&gt;
3351
-
3352
- &lt;!-- replace element with other element --&gt;
3353
- &lt;div&gt;
3354
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3355
- &lt;/div&gt;
3356
-
3357
- &lt;!-- replace element with other content--&gt;
3358
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3359
-
3360
- &lt;!-- replace content with other element --&gt;
3361
- &lt;p&gt;
3362
- &lt;div&gt;
3363
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3364
- &lt;/div&gt;
3365
- &lt;/p&gt;
3366
-
3367
- &lt;!-- replace content with other content --&gt;
3368
- &lt;p&gt;
3369
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3370
- &lt;/p&gt;
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">&lt;div kw:d="id(link)"&gt;
3379
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3380
- &lt;/div&gt;
3381
-
3382
- &lt;!-- replace element with other element --&gt;
3383
- &lt;p kw:d="replace_element_with(element(link))"&gt;
3384
- back to home
3385
- &lt;/p&gt;
3386
-
3387
- &lt;!-- replace element with other content--&gt;
3388
- &lt;p kw:d="replace_element_with(content(link))"&gt;
3389
- back to home
3390
- &lt;/p&gt;
3391
-
3392
- &lt;!-- replace content with other element --&gt;
3393
- &lt;p kw:d="replace_content_with(element(link))"&gt;
3394
- back to home
3395
- &lt;/p&gt;
3396
-
3397
- &lt;!-- replace content with other content --&gt;
3398
- &lt;p kw:d="replace_content_with(content(link))"&gt;
3399
- back to home
3400
- &lt;/p&gt;
3401
- </pre>
3402
- <div class="terminal_caption">
3403
- compile</div>
3404
- <pre class="terminal">$ kwartz -l jstl ex-replace2.pdata
3405
- &lt;div&gt;
3406
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3407
- &lt;/div&gt;
3408
-
3409
- &lt;!-- replace element with other element --&gt;
3410
- &lt;div&gt;
3411
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3412
- &lt;/div&gt;
3413
-
3414
- &lt;!-- replace element with other content--&gt;
3415
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3416
-
3417
- &lt;!-- replace content with other element --&gt;
3418
- &lt;p&gt;
3419
- &lt;div&gt;
3420
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3421
- &lt;/div&gt;
3422
- &lt;/p&gt;
3423
-
3424
- &lt;!-- replace content with other content --&gt;
3425
- &lt;p&gt;
3426
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3427
- &lt;/p&gt;
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">&lt;div kw:d="id(link)"&gt;
3436
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3437
- &lt;/div&gt;
3438
-
3439
- &lt;!-- replace element with other element --&gt;
3440
- &lt;p kw:d="replace_element_with(element(link))"&gt;
3441
- back to home
3442
- &lt;/p&gt;
3443
-
3444
- &lt;!-- replace element with other content--&gt;
3445
- &lt;p kw:d="replace_element_with(content(link))"&gt;
3446
- back to home
3447
- &lt;/p&gt;
3448
-
3449
- &lt;!-- replace content with other element --&gt;
3450
- &lt;p kw:d="replace_content_with(element(link))"&gt;
3451
- back to home
3452
- &lt;/p&gt;
3453
-
3454
- &lt;!-- replace content with other content --&gt;
3455
- &lt;p kw:d="replace_content_with(content(link))"&gt;
3456
- back to home
3457
- &lt;/p&gt;
3458
- </pre>
3459
- <div class="terminal_caption">
3460
- compile</div>
3461
- <pre class="terminal">$ kwartz -l eperl ex-replace2.pdata
3462
- &lt;div&gt;
3463
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3464
- &lt;/div&gt;
3465
-
3466
- &lt;!-- replace element with other element --&gt;
3467
- &lt;div&gt;
3468
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3469
- &lt;/div&gt;
3470
-
3471
- &lt;!-- replace element with other content--&gt;
3472
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3473
-
3474
- &lt;!-- replace content with other element --&gt;
3475
- &lt;p&gt;
3476
- &lt;div&gt;
3477
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3478
- &lt;/div&gt;
3479
- &lt;/p&gt;
3480
-
3481
- &lt;!-- replace content with other content --&gt;
3482
- &lt;p&gt;
3483
- back to &lt;a href="/"&gt;home&lt;/a&gt;.
3484
- &lt;/p&gt;
3485
- </pre>
3486
- <br>
3487
-
3488
- <br>
3489
-
3490
-
3491
3253
  <br>
3492
3254
 
3493
3255