Categories > TinyButStrong general >

parsing of sub-templates?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: deezaster
Date: 2004-05-31
Time: 22:03

parsing of sub-templates?

why tbs do not parse sub-templates?

index.php
:
$TPL_CSS = "/css/xxx.css";
$TPL_Color = "#d6d6d6";
:

index.tpl
:
<style> 
      [var.TPL_CSS;file=[val]]
</style>
:

xxx.css
:
.xxx {
   color : [var.TPL_Color];
}
:



TBS is the best  template-systems i ever work with it (and i realized projects about 3 years with SMARTY!!!!).
By: RwD
Date: 2004-05-31
Time: 22:22

Re: parsing of sub-templates?

http://www.tinybutstrong.com/tbs_us_manual.htm#html_include

I think it is just not seeing it as a template, but as plain HTML. See the above link...
By: Skrol29
Date: 2004-05-31
Time: 22:33

Re: parsing of sub-templates?

Hi,

That's because your [var] tag is merged at the Show() method.
For sub-template, it's better to use [tbs_inclue.onload] tags.
[tbs_inclue.onload;file=[var.TPL_CSS]]