[web-devel] Yesod. twice CSS code

Michael Snoyman michael at snoyman.com
Mon May 2 15:52:09 CEST 2011


widgetFile automatically implies cassiusFile (if the cassius file is
present). Same for lucius and julius.

Michael

On Mon, May 2, 2011 at 4:44 PM, Anton Cheshkov <acheshkov at gmail.com> wrote:
> Hello Michael. I have noticed that my css files contain all code twice
> Handler:
> getApplicationFrameR :: Handler RepHtml
> getApplicationFrameR = do
>     defaultLayout $ do
>        setTitle "Помогай"
>        addJulius $(juliusFile "application")
>        addScript JsApiR
>        addCassius $(cassiusFile "application-frame")
>        addWidget $(widgetFile "application-frame")
> Cassius: (application-frame.cassius):
> div#header
>     color: red
> div#content
>     color: green
>
> css output from browser:
> div#header{color:red}div#content{color:green}div#header{color:red}div#content{color:green}body{font-family:sans-serif}
>
>
> The Lucius behavior is the same.
> What do i make wrong ?
> Thanks.
> --
> Best regards,
> Cheshkov Anton
> Phone: +7 909 005 18 82
> Skype: cheshkov_anton
>



More information about the web-devel mailing list