hamlet6to7

This commit is contained in:
Greg Weber 2011-02-08 12:43:01 -08:00
parent 6d2f366094
commit 98aa67a68d
2 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ searchFieldProfile autoFocus = FieldProfile
addHtml $ [HAMLET|\<script>if (!('autofocus' in document.createElement('input'))) {document.getElementById('#{theId}').focus();}</script>
|]
addCassius [CASSIUS|
#$theId$
#{theId}
-webkit-appearance: textfield
|]
}

View File

@ -53,7 +53,7 @@ getRootR = defaultLayout $ wrapper $ do
i <- newIdent
setTitle $ string "Hello Widgets"
addCassius [$cassius|
#$i$
#{i}
color: red
|]
addStylesheet $ StaticR $ StaticRoute ["style.css"] []
@ -61,7 +61,7 @@ getRootR = defaultLayout $ wrapper $ do
addScriptRemote "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
addScript $ StaticR $ StaticRoute ["script.js"] []
addHamlet [$hamlet|
%h1#$i$ Welcome to my first widget!!!
%h1#{i} Welcome to my first widget!!!
%p
%a!href=@RootR@ Recursive link.
%p