Web 编程脚本 Hoplon

码农软件 · 软件分类 · 脚本编程语言 · 2019-07-31 13:43:37

软件介绍

Hoplon 是 Web 编程更简单的方式,该项目包含 Web 编程的一些方法和库。采用 Clojure 和 ClojureScript 编写应用。

ClojureScript 代码示例:

(page "foo/bar.html"
  (:require [my.lib :as lib]))(defc clicks 0)(html
  (head
    (title "Hello World")
    (link :rel "stylesheet" :href "css/main.css"))
  (body
    (lib/heading-large "Hello, world!")
    (p (text "You've clicked ~{clicks} times."))
    (button :on-click #(swap! clicks inc) "Click me!")))

对应的 HTML 代码:

<script type="text/hoplon">
  (page "foo/bar.html"
    (:require [my.lib :as lib]))

  (defc clicks 0)</script><html>
  <head>
    <title>Hello World</title>
    <link rel="stylesheet" href="css/main.css">
  </head>
  <body>
    <lib.heading-large>Hello, world!</lib.heading-large>
    <p><text>You've clicked ~{clicks} times.</text></p>
    <button on-click="{{ #(swap! clicks inc) }}">
      Click me!    </button>
  </body></html>

本文地址:https://codercto.com/soft/d/11339.html

A Guide to Monte Carlo Simulations in Statistical Physics

A Guide to Monte Carlo Simulations in Statistical Physics

Landau, David P./ Binder, Kurt / Cambridge Univ Pr / 2005-9 / 786.00元

This new and updated edition deals with all aspects of Monte Carlo simulation of complex physical systems encountered in condensed-matter physics, statistical mechanics, and related fields. After brie......一起来看看 《A Guide to Monte Carlo Simulations in Statistical Physics》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具