addyosmani / addyosmani/critical

inline style with @ doesn't work in razor templates

Open
#504 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.3k
Forks
390
PR merge metrics
No merged PRs in 30d

Description

Im having trouble with @font-face in my inline styles, as the @ is used in razor syntax as a variable. The solution to this problem is to escape it with double @ "@@font-face". My issue or problem is, I need to be able to replace @ with double @@ for this to work.

Is there already a solution for this in the current build or is this something I can create?

friendly regards
Nicklas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.