Wapp offers a single-binary framework and interpreter for creating both CLI and web applications using TCL. With everything bundled into a statically built binary, it ensures simplicity and portability—perfect for various environments. Explore the robust features and ease of use that make Wapp an excellent choice for TCL developers.
Wapp is a versatile framework and interpreter designed for creating both command-line and web applications using Tcl. This single-binary, statically built solution incorporates a Tcl 9 interpreter, a robust Wapp framework, an SQLite3 interface, and capabilities for adding additional Tcl scripts. Its design allows it to operate seamlessly in various environments, including those with limited access, by eliminating external dependencies.
wapptclsh command launches an interactive shell (REPL), allowing users to execute Tcl commands instantly. It also supports CLI scripting, making it a flexible alternative to traditional Tcl shells.Here’s a quick demonstration of how to use the Wapp interpreter:
$: wapptclsh
_ _ _
| | | |___ ___ ___
| | | | .'| . | . |
|_____|__,| _| _|
|_| |_|
Wapp 1.0 shell using SQLite version 3.50.0 and TCL 9.0
% Markdown::convert "# Heading1"
<h1>Heading1</h1>
% sqlite3 db :memory:
% db one {select strftime("%Y-%m-%d %H:%M:%S")}
2025-02-19 21:12:42
%
The project includes optional files such as markdown.tcl for Markdown processing without external dependencies and app.tcl for consolidating application logic within the interpreter. Using app.tcl, developers can package web application code elegantly, enhancing portability and deployment simplicity.
Wapp extends its functionality with features like wapp-set-cookie, allowing for cookie management with support for expiry time and secure flags:
wapp-set-cookie session val
wapp-set-cookie session-secure val 0 secure
wapp-clear-cookie session
Wapp provides an extensive list of commands to facilitate Tcl scripting, including control structures, string manipulations, array handling, and database interactions, ensuring a rich programming experience.
Wapp is a powerful framework for Tcl developers looking to build efficient and portable applications, combining the simplicity of a single binary with the flexibility of a comprehensive scripting environment.
No comments yet.
Sign in to be the first to comment.