X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Rakka%2FWiki%2FInterpreter%2FBase.hs;h=b17af3253c1b7031046210d5cd465a67b8467b4b;hb=f7ff1639d50b827a8ce1e4dd3631ce300ecb3d19;hp=f461027dc339e1049f9543fe36b401f7cf8a275e;hpb=7f0d3161b737e778977fbee52541660ee38fcbb3;p=Rakka.git diff --git a/Rakka/Wiki/Interpreter/Base.hs b/Rakka/Wiki/Interpreter/Base.hs index f461027..b17af32 100644 --- a/Rakka/Wiki/Interpreter/Base.hs +++ b/Rakka/Wiki/Interpreter/Base.hs @@ -25,6 +25,7 @@ interpreters = [ lineBreakInterp , newPageInterp , editPageInterp , loginInterp + , searchFieldInterp ] @@ -153,9 +154,25 @@ loginInterp iciName = "login" , iciInterpret = \ _ _ -> - let attrs = [ ("type" , "button") - , ("value" , "Login") - , ("class" , "loginButton") + let attrs = [ ("type" , "button") + , ("value", "Login") + , ("class", "loginButton") + ] + in + return (Input attrs) + } + + +-- +searchFieldInterp :: Interpreter +searchFieldInterp + = InlineCommandInterpreter { + iciName = "searchField" + , iciInterpret + = \ _ _ -> + let attrs = [ ("type" , "text") + , ("class", "searchField") ] in return (Input attrs)