Adnet Ghislain wrote:> Hello,
>
> the file type has some good stuff with
>
> replace and source :
>
> - replace : does it work when we put a content from a template ? i mean
> can i say source => template(xxx), replace => false so that if it
does
> not exist it get created but if it exist the templete is not used
The client has no idea that templates even exist, since they are
entirely language features -- the client can''t differentiate between
file contents specified with a template vs. specified directly. As a
result, the ''replace'' thing will work fine.
> - replace: while i am at it, could we have alias to false/true by
> yes/no it would be more readable and intuitive replace => yes / replace
> => true :)
Please file this as a feature request.
> - source : if you put multiple source it take the first on available
> this allow great simplicity to setup override, does template () support
> the same mecanism (multiple files, take the first one available ) ?
This does not exist right now but would not be difficult to add. Please
file it as a feature request.
--
I never did give anybody hell. I just told the truth, and they thought
it was hell. -- Harry S Truman
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com