百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

mala

> 编程语言
开源

用于 om、mesh 和 core.async 的 UI 模板

100 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

用于 om、mesh 和 core.async 的 UI 模板

Mala

A UI template (and reference app) built on Om, with modular components, router, async event handling, and responsive design with an emphasis on using Clojurescript all the way.

Features

  • Project structure for design and ui components
  • Integrated Om components
  • Responsive Design with Clojurescript using Mesh (not bootstrap, not less/sass)
  • Core.async
  • Reloadable code with Figwheel
  • Routing with Secretary
  • Mock api server with real Compojure routes
  • Curated cljsjs libraries
  • Integrated Ankha inspector, Om-i instrumentation
  • Strictly follows Om releases

Quickstart

bash
lein new mala chant
cd chant

The generated src looks like this:

src
├── layout
│   ├── grid.clj
│   ├── index.clj
│   └── typography.clj
└── ui
    ├── client.cljs
	├── components
	    ├── .cljs
		├── .cljs
	├── router.cljs
	├── state.cljs
	├── types.cljs
	└── utils.cljs
 	├── core.cljs
env
└── dev
   ├── mock.clj
   └── repl.cljs
   └── debug.cljs

Start figwheel, watch garden, and a figwheel server integrated with mock router:

lein dev

Open http://localhost:3449/ and look for a Cljs brepl on the prompt.

Emacs Cider users can start a repl with the following commands

M-x cider-connect 
localhost 
7888 
(at the prompt ...)
(use 'figwheel-sidecar.repl-api)
(cljs-repl)

Ready to deploy? Generate an optimized js file

lein release

Wiki

For more info, see the wiki.

Leiningen Template

A lein-template based on this reference app is under lein. Significant changes in the project structure and dependencies will be updated both in the reference app and leiningen template.

For a production-ready Ring server template for building tiny services, see my other template, ring-micro.

Credits

A big thanks to @swannodette for Om, Joel Holbrooks for Garden, and Bhauman for Fighweel. Some code samples were copied from:

  • goya
  • typeahead
  • om-cookbook

Status

License

Copyright © 2016 Priyatam Mudivarti.

Released under the Eclipse Public License, same as Clojure.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言