hoplon

Hoplon web development tools and libraries.

  • 所有者: hoplon/hoplon
  • 平台:
  • 许可证: Eclipse Public License 1.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Hoplon

clojars snapshot status

build status road map Backers on Open Collective Sponsors on Open Collective

Hoplon is a set of tools and libraries for making web applications.

Hoplon provides a compiler for web application frontend development, and includes
the following libraries as dependencies to complete the stack:

  • Javelin: a spreadsheet-like dataflow library for managing client
    state. Hoplon tightly integrates with Javelin to reactively bind DOM
    elements to the underlying Javelin cell graph.
  • Castra: a full-featured RPC library for Clojure and
    ClojureScript, providing the serverside environment. (optional)

Quickstart

Install Boot and then generate a starter project with:

boot -d boot/new new -t hoplon -n hoplon-starter-project

Example

src/pages/index.cljs:

(page "index.html")

(ns ^{:hoplon/page "index.html"} pages.index
  (:require [hoplon.core  :as h :refer [div ul li html head title body h1 span p button text]]
            [javelin.core :as j :refer [cell cell=]]
            [hoplon.jquery]))

(defn my-list [& items]
  (div
    :class "my-list"
    (apply ul (map #(li (div :class "my-list-item" %)) items))))

(def clicks (cell 0))

(html
  (head
    (title "example page"))
  (body
    (h1 "Hello, Hoplon")

    (my-list
      (span "first thing")
      (span "second thing"))

    (p (text "You've clicked ~{clicks} times, so far."))
    (button :click #(swap! clicks inc) "click me")))

Browser Support

Hoplon has been thoroughly tested on desktop and mobile devices against the
following browsers:

IEdge Firefox Safari
Chrome Opera
Android

Note that the object element is not implemented for IE 8, and that older
browsers that predate HTML 5 elements such as Audio and Video will not render
them. Additionally, boot development tasks such as boot-reload and
boot-cljs-repl, which inject scripts into the browser to function, do not
support IE 8 (which errors when output is written to the console without the
developer tools open). Testing against these browsers is best done with simple
or advanced optimizations turned on.

Documentation

Demos

Hacking

# build and install locally
boot develop

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! ? [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]










License

Copyright (c) Alan Dipert and Micha Niskin. All rights reserved.

The use and distribution terms for this software are covered by the Eclipse
Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can
be found in the file epl-v10.html at the root of this distribution. By using
this software in any fashion, you are agreeing to be bound by the terms of
this license. You must not remove this notice, or any other, from this software.

主要指标

概览
名称与所有者hoplon/hoplon
主编程语言Clojure
编程语言Clojure (语言数: 2)
平台
许可证Eclipse Public License 1.0
所有者活动
创建于2013-05-15 21:06:03
推送于2024-10-11 00:57:52
最后一次提交2024-03-18 10:50:02
发布数113
最新版本名称v7.5.0 (发布于 )
第一版名称0.1.0 (发布于 2013-10-18 14:46:02)
用户参与
星数1k
关注者数50
派生数65
提交数736
已启用问题?
问题数175
打开的问题数31
拉请求数92
打开的拉请求数7
关闭的拉请求数31
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?