|
Revision 225, 0.6 kB
(checked in by argh, 5 years ago)
|
Reflected changes for bugfix for empty global vars
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
<!-- $Id$ --> |
|---|
| 2 |
<patTemplate:tmpl name="page"> |
|---|
| 3 |
This is the global var in template foo: {BAR}<br /> |
|---|
| 4 |
|
|---|
| 5 |
<!-- |
|---|
| 6 |
note the difference between empty tags and 'default=""' |
|---|
| 7 |
--> |
|---|
| 8 |
<patTemplate:var name="global_foo" /><br /> |
|---|
| 9 |
|
|---|
| 10 |
<patTemplate:var name="local_bar" > |
|---|
| 11 |
This local value cannot be overwritten by global values |
|---|
| 12 |
</patTemplate:var><br /> |
|---|
| 13 |
<patTemplate:var name="local_foo" default="" /><br /> |
|---|
| 14 |
<br /> |
|---|
| 15 |
|
|---|
| 16 |
<patTemplate:tmpl name="bar"> |
|---|
| 17 |
This is the global var in template bar: {BAR}<br /> |
|---|
| 18 |
Here are some more: {USER_NAME}, {USER_REALNAME}<br /> |
|---|
| 19 |
</patTemplate:tmpl> |
|---|
| 20 |
</patTemplate:tmpl> |
|---|