Added missing bootstrap images (#344)

This commit is contained in:
Michael Snoyman 2012-04-29 09:47:56 +03:00
parent e18c678aed
commit a628705493
4 changed files with 13 additions and 0 deletions

View File

@ -126,6 +126,7 @@ scaffold = do
mkDir "templates"
mkDir "static"
mkDir "static/css"
mkDir "static/img"
mkDir "static/js"
mkDir "config"
mkDir "Model"
@ -156,8 +157,18 @@ scaffold = do
writeFile' "Settings.hs" $(codegen "Settings.hs")
writeFile' "Settings/StaticFiles.hs" $(codegen "Settings/StaticFiles.hs")
writeFile' "Settings/Development.hs" $(codegen "Settings/Development.hs")
writeFile' "static/css/bootstrap.css"
$(codegen "static/css/bootstrap.css")
S.writeFile (dir ++ "/static/img/glyphicons-halflings.png")
$(runIO (S.readFile "scaffold/static/img/glyphicons-halflings.png") >>= \bs -> do
pack <- [|S.pack|]
return $ pack `AppE` LitE (StringL $ S.unpack bs))
S.writeFile (dir ++ "/static/img/glyphicons-halflings-white.png")
$(runIO (S.readFile "scaffold/static/img/glyphicons-halflings-white.png") >>= \bs -> do
pack <- [|S.pack|]
return $ pack `AppE` LitE (StringL $ S.unpack bs))
writeFile' "templates/default-layout.hamlet"
$(codegen "templates/default-layout.hamlet")
writeFile' "templates/default-layout-wrapper.hamlet"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -38,6 +38,8 @@ extra-source-files:
scaffold/deploy/Procfile.cg
scaffold/templates/homepage.hamlet.cg
scaffold/static/css/bootstrap.css.cg
scaffold/static/img/glyphicons-halflings.png
scaffold/static/img/glyphicons-halflings-white.png
scaffold/templates/default-layout.hamlet.cg
scaffold/templates/homepage.julius.cg
scaffold/templates/default-layout-wrapper.hamlet.cg