Search code examples
syntaxsymfony1

How do I disable inclusion of passed down JavaScript and Stylesheet files in view.yml for a module?


In symfony1.1, I develop a module that shall not include any of the passed down javascripts and stylesheets of its application.

I hence I created a module-specific view.yml, yet I cannot find the syntax for disabling them.

My original question involved only JavaScript and CSS. But now I want to remove metas and http_tags as well. For some reason I get for:

all:
  http_metas: [-*]
  metas: [-*]

the actual tag

<meta name="0" content="-*" />

Does anyone know what's different here?


Solution

  • You can exclude all the passed down javascripts and stylesheets, or remove just specific ones.

    For example:

    indexSuccess:
      stylesheet: [-style]
    

    or:

    indexSuccess:
      stylesheet: [-*]