wbsx

Web app builder. Command line XSLT processor for XML and HTML content.

Introduction

wbsx is a CLI toolkit for building websites and web apps using XSLT stylesheets.

NOTICE: This software is currently under active development. Some features are incomplete.

Supported platforms: Linux, Windows, and macOS.

Demo

This website is a demo of the program.

Usage

Each output file is generated from one input file.

Do XSLT transformation on an XML file: wbsx run template:site.xsl src.xml index.html

Input may be a glob pattern.

Output may be a directory. If the path does not exist, it is created. Use a trailing / to create a directory.

Paths are resolved relative to the configuration file’s directory, or to the current working directory when no configuration file is used. A leading / refers to that base directory, not to the filesystem root.

Run a HTTP server on localhost: wbsx serve --listen:8080 .

Print help: wbsx --help

Example Dockerfile:


FROM codeberg.org/wbsx/wbsx-runtime:latest

COPY --chown=wbsx:wbsx ./ /app

CMD ["serve", "--server-config", "/app/server.config"]
                        

Build container: docker build -t your-website:latest .

Run container: docker run --rm -p 8080:8080 your-website:latest

Installation

macOS


brew tap wbsx/wbsx https://codeberg.org/wbsx/homebrew-wbsx.git
brew install --cask wbsx
                        

Linux

Download the package for your system.

Tar archive

tar -xzf wbsx-<version>-linux-x86_64.tar.gz

sudo install -m 0755 wbsx /usr/local/bin/wbsx

Debian and Ubuntu

sudo apt install ./wbsx-<version>-linux-x86_64.deb

Fedora, RHEL, and compatible distributions

sudo dnf install ./wbsx-<version>-linux-x86_64.rpm

Nix

Install wbsx directly from the wbsx Nix repository:

nix profile install git+https://codeberg.org/wbsx/wbsx-nix.git

Open a development shell containing wbsx:

nix shell git+https://codeberg.org/wbsx/wbsx-nix.git

Guix

Add the wbsx Guix channel to ~/.config/guix/channels.scm:


(cons*
  (channel
    (name 'wbsx)
    (url "https://codeberg.org/wbsx/wbsx-guix.git"))
  %default-channels)

Update the channel and install wbsx:

guix pull

guix install wbsx

Source code

Source code repository: https://codeberg.org/wbsx/wbsx.