[web-devel] Including a static css file

Mark Bradley barkmadley at gmail.com
Mon Jul 18 04:48:46 CEST 2011


On Mon, Jul 18, 2011 at 12:41 PM, Michael Snoyman <michael at snoyman.com> wrote:
> On Sun, Jul 17, 2011 at 10:46 PM, Anakreon Mentis
> <anakreonmejdi at gmail.com> wrote:
>> I am experimenting with yesod and am new to it.
>> I changed the default-layout.hamlet file of a project created by yesod init.
>> The modification consists of the following line
>>        <link rel="stylesheet" type="text/css" href="@{StaticR css/base.css}">
>>
>> I get an error message
>> " (line 4, column 48):
>> unexpected 'h'
>> expecting end of input, "\n", "\r\n" or ">"
>>
>> The file static/css/base.css does exist.
>
> Try replacing "css/base.css" with "css_base_css". The file
> StaticFiles.hs calls creates identifiers for every file in the static
> folder, but it has to follow the rules of Haskell naming. Basically,
> more characters get replaced with an underscore.

does it uniquely identify files?

static/css.base.css
static/css/base.css

>
> Michael
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>



-- 
-barkmadley
sent from an internet enabled device
http://barkmadley.com



More information about the web-devel mailing list