Skip to content

tmkw/juce-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

juce-cli

Gem Version

This is an experimental project. Do not use for production level.

juce-cli is a Ruby-based command-line interface for juce,
a Clojure DSL designed for generating HTML using Clojure (S-expressions) syntax. It is intended for static site or page generation, and is not suitable as a dynamic web page renderer.


Quick Example

$ echo '(div "Hello, World!")' | juce
<div>Hello, World!</div>

Requirements

To use juce-cli, the following software must be installed:

  • Ruby 3.3.4 or higher
  • Clojure CLI 1.12.4 or higher

Ruby installation guide: https://www.ruby-lang.org/en/documentation/installation/

Clojure installation guide: https://clojure.org/guides/install_clojure

Installation

RubyGems

$ gem install juce-cli

Bundler

Gemfile:

gem "juce-cli"

Install:

$ bundle install

Run:

$ bundle exec juce ....

Usage

Basic examples

$ echo '(div "Hello, World!")' | juce
<div>Hello, World!</div>

# this is equivalent to the above
$ juce -e '(div "Hello, World!")'
$ echo '(div :id 123 :class "xyz hoge" "Hello, World!")' | juce
<div id="123" class="xyz hoge">Hello, World!</div>

Help

$ juce --help

DSL Specification

The full DSL specification, examples, and extension mechanisms are documented in the juce repository: https://github.com/tmkw/juce

License

This project is licensed under the BSD 2-Clause License (SPDX: BSD-2-Clause). See the LICENSE file for details.

Author

Takanobu Maekawa

https://github.com/tmkw

About

Command-line interface for the juce HTML generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages