-

 LiveInternet.ru:
: 15.10.2005
: 679
: 2837
: 4929

:


, 08 2010 . 07:22 +
- frameworks, php- RoR TPP. , - " ", , (XSLT) ... - , , - , / .
, js:

function magicProcess(template, data) {
for(var b=template,c=data,d=/:[a-zA-Z][a-zA-Z0-9\-_]+/g,e,f=b,g=0;e=d.exec(b);) {
var h=e[0].replace(/^:/,"");
if(c[h]!=null) {
f=f.replace(e[0],c[h]);
g++;
} else f=f.replace(e[0]," ")
}
if(g==0)f="";
return f;
}

, 1278 , 299. , 299 - , ... , , , , .

? , , , , ... .

: [1] []
eugene20237   , 08 2010 . 12:56 ()
...
   
eugene20237   , 08 2010 . 13:03 ()
, - . ? )
   
muxcc   , 08 2010 . 14:27 ()
, , ? - , . )
   
d0rc   , 08 2010 . 15:40 ()
eugene20237, "" - . , "Hello, :name" [name=>"eguene20237"] . . " ", - :
function executeTemplate(name, optional_args) {
var url = getTemplatesURL(name);
try {
var json = json2array(performAJAXRequest(url, optional_args));
var result = '';
for(i=0;i less then json.length;i++) result+=magicProcess(getTemplateBody(name), json[i]);
document.getElementById(getTemplateInjectionPoint(name), result);
} catch(e) {}
}
   
eugene20237   , 09 2010 . 02:41 ()
? . - .
   
d0rc   , 09 2010 . 03:49 ()
eugene20237, - ... , , - mystem - , , , , ., . .... , , :))
   
eugene20237   , 12 2010 . 22:02 ()
Microsoft ?
   
d0rc   , 12 2010 . 23:12 ()
eugene20237, ... ? windows- , ...:) .... :)))
   
muxcc   , 13 2010 . 01:05 ()

d0rc

d0rc, , , ...
, , code.google.com ?
   
d0rc   , 13 2010 . 01:27 ()
SlvX, macosx/linux/*bsd... , ? ? . env-js, :)
   
muxcc   , 13 2010 . 01:31 ()

d0rc

d0rc, *bsd ..
, ...
   
eugene20237   , 14 2010 . 20:53 ()
- - ...)
   
d0rc   , 14 2010 . 21:48 ()
eugene20237, suum cuique...
   
: [1] []
 

:
: 

: ( )

:

  URL