
Ūi⡼ɳʸǥǥ󤷤ơ¾ꥢϼưѴǤ롣

============================================================
                      Ϣե
============================================================

script/tool/compile_template (ѥ륳ޥ)
  => pm/MobileTplCompiler.pm (ץꥳѥ)
    <= template/_const.txt    
    <= template/_style.txt    
    <= template/_inc_html.txt include 
    => MTemplate::Compiler.pm (ƥץ졼ȥѥ)

pm/HTMLTemplate.pm
  => MTemplate.pm

template/
  _system/ ƥƥץ졼
  _html/   Ūڡʶ̥ƥץѿ߽ϹԤ

data/html_bin/ ѥ뤵줿ƥץ졼

============================================================
                      ѥˡ
============================================================

compile_template

  ǽѥʹߤԽ줿ƥץ졼Ȥ򥳥ѥ롣
  * _const.txt, _style.txt, _inc_html.txt Խѥˤʤ롣

compile_template --refresh

  ѥ

compile_template DIR

  DIR ۲ΥեΤߥѥ

============================================================
                  ƥץ졼Ȥν񤭤
============================================================

 ѿŸ

$=(e|h|hn|b):{NAME}$

e: url encode

h: htmlspecialchars escape
   ѴԤ
   " => &quot;
   < => &lt;
   > => &gt;
   & => &quot;

hn: nl2br
   h ν˲äơѴԤ
   \n => <br />

b: bypass
   ̵Ѵ

============================================================
 ʬ

$ if ({COND}) { $
$ } elsif ({COND1} || {COND2} || ..) { $
$ } elsif ({COND1} && {COND2} && ..) { $
$ } $

ͥȤб

COND:

ѿ  =  : ʸ
ѿ !=  : ʸ
ѿ         : ne '' ʸӤʤΤǡѿ="0" ξ TRUE
!ѿ        : eq '' ʸӤʤΤǡѿ="0" ξ FALSE
ѿ >=  : 
ѿ >   : 
ѿ <=  : 
ѿ <   : 

ɬդѿ̾ǡդѿƱΤӤԲ

============================================================
 롼

$ loop ({NAME}) { $
$ } $

ͥȤǽʤʤϤ

============================================================
 ץꥳѥ餬뵡ǽ

$CON:{NAME}$ template/_const.*.txt  
$STY:{NAME}$ template/_style.*.txt  Υ

$INC:{NAME}[:KEY1=VAL1,KEY2=VAL2,..]$
  template/_inc_html.txt Ƥ򥤥󥯥롼
  $INC$  KEY,VAL ѿȤ
  ${INC:header:title=****}$ Τ褦 ${  }$ ǽ񤯡

$DOM:{DOMAINS}$  $/DOM$
  ɥᥤΤɽ
  ex) $DOM:d,v$docomo,softbank$/DOM$
  DOMAINS: оݥꥢʸ޶ڤ ( d | a | v )

$ENC:{STRING}$
  ʸURL󥳡ɤ롣
  STRING: Ѵʸ
  ex) <a href="_l?q=$ENC:$">
  STRING ѿϻȤʤ

::TIME(YYYY/[M]M/[D]D [H]H:II)
  unixtimestamp οͤѴ롣ʼifʸǻѡ
  ex) $ if (CurrentTime >= ::TIME(2005/9/16 18:00) { $

============================================================
