Skip to content

[UPGRADE] Mention the CSS strategy and it's effects #14666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented May 17, 2015

The CSS strategy, which is automatically applied to Twig CSS files as of Symfony 2.7, results in different behaviour when outputting reserved characters like #123456. This has to be documented in the UPGRADE file.

See https://github.com/javiereguiluz/EasyAdminBundle/pull/305 for an example.

Q A
Fixed tickets -
License MIT

@ogizanagi
Copy link
Contributor

👍 :)

@Pierstoval
Copy link
Contributor

Does it concern only CSS or may it involve also other mime types, like js ?

```css
{# styles.css.twig #}

{# with brand_Color: '#123456' #}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo:

- brand_Color
+ brand_color

@wouterj
Copy link
Member Author

wouterj commented May 17, 2015

@Pierstoval the JS strategy is automatically applied for JS files in all Symfony versions (or at least, it was already applied before Symfony 2.7).

@ogizanagi
Copy link
Contributor

@Pierstoval : AFAIU, js was already handled correctly: #13141, but css handling was only introduced in symfony >=2.7 which dropped Twig <1.18 support.

EDIT: too slow. :)

@fabpot
Copy link
Member

fabpot commented May 20, 2015

Thank you @wouterj.

@fabpot fabpot closed this in aca6ff6 May 20, 2015
@wouterj wouterj deleted the patch-15 branch May 20, 2015 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants