Ignore:
Timestamp:
Nov 3, 2009 6:44:59 PM (15 years ago)
Author:
mylan
Message:

#110: Updated doctests for css_dtml_skin subtemplate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.themetemplate/trunk/quintagroup/themetemplate/README.txt

    r1024 r1360  
    234234    paster addcontent -a 
    235235      ... 
     236        css_dtml_skin:   A DTML file in skin layer with CSS registration 
    236237        css_resource:    A Plone 3 CSS resource template 
    237238      ... 
     
    416417 
    417418 
     419Adding CSS resource as dtml-file into skins layer 
     420================================================= 
     421 
     422This template actually absolutely same to the previouse one, but layer_name 
     423variable added to point in which skin layer css dtml-file should be added to. 
     424And, of course, css resource added into pointing *skins/<layer_name>/<css_reseource_name>.dtml* file. 
     425 
     426This subtemplate has several benefits before registering css as resource layer: 
     427  - in dtml file you can use power of dtml language 
     428  - this resource can be overriden by customer if he needs that 
     429 
     430IMPORTANT: 
     431For add css resource in registered skin layer - you should use this subtemplate 
     432in conjunction with *skin_layer* one. 
     433 
     434 
     435Use *css_dtml_skin* subtemplate. 
     436 
     437    >>> paster("addcontent --no-interactive css_dtml_skin") 
     438    paster addcontent --no-interactive css_dtml_skin 
     439    Recursing into profiles 
     440    ... 
     441    Recursing into skins 
     442    ... 
     443 
     444This template adds main.css.dtml file into skins/skin_layer folder 
     445 
     446    >>> 'main.css.dtml' in os.listdir('skins/skin_layer') 
     447    True 
     448 
     449The main.css.dtml file already prepared to use as dtml-document 
     450    >>> cat('skins/skin_layer/main.css.dtml') 
     451    /* 
     452    ... 
     453    /* <dtml-with base_properties> (do not remove this :) */ 
     454    ... 
     455    /* </dtml-with> */ 
     456    <BLANKLINE> 
     457   
     458 
     459And cssregistry.xml profile was added into profiles/default directory with 
     460registered main.css stylesheet 
     461 
     462    >>> 'cssregistry.xml' in os.listdir('profiles/default') 
     463    True 
     464    >>> cat('profiles/default/cssregistry.xml') 
     465    <?xml version="1.0"?> 
     466    <object name="portal_css"> 
     467    <BLANKLINE> 
     468     <stylesheet title="" 
     469        id="++resource++quintagroup.theme.ploneexample.stylesheets/main.css" 
     470        media="screen" rel="stylesheet" rendering="inline" 
     471        cacheable="True" compression="safe" cookable="True" 
     472        enabled="1" expression=""/> 
     473    ... 
     474 
     475 
    418476Adding JAVASCRIPT resource 
    419477-------------------------- 
Note: See TracChangeset for help on using the changeset viewer.