haquery -


BSD
跨平台

软件简介

Haquery 相当于 jQuery forHaskell, 包含一个基于
CSS 选择器的操作和模版引擎。

示例代码:

{-# LANGUAGE OverloadedStrings #-}
import Haquery

example :: Tag
example = html [
        head' [] [],
        body [] [
            div' [cat "id" "main", cat "class" "c1"] [
                div' [cat "id" "sub1"] [],
                div' [cat "id" "sub2"] []
            ]
        ]
    ]