-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Rob Lauer edited this page Apr 30, 2025
·
29 revisions

Interested in contributing? Here's your opportunity to be part of an open source project.
- It's easy
- It's fun
- It's extensible
- Write your own plugins in Perl
- It's versatile
- Use it to create or prototype RESTful services
- Use it to create web pages
- Use it for templating
customer.jroc
Select a record from the database and return as JSON string (with mime-type of application/json)
<sqlselect "select * from customer where id = ?"
--bind=$input.id
--define-var="result">
</sqlselect>
<var --json $result>
Read a record set from the database and display a web page...
<html>
<body>
<h1>Customer Info</h1>
<sqlselect "select customer_name, customer_phone from customer where customer_name like ?"
--bind = $input.name>
<div>
<label for="customer_name">Customer Name:</label>
<input type="text" name="customer_name" value="<var $customer_name>"><br>
<label for="customer_phone">Customer Phone:</label>
<input type="text" name="customer_phone" value="<var $customer_phone>"><br>
</div>
</sqlselect>
</body>
</html>
<var>
<foreach>, <if>, <unless>, <while>
<sql>, <sqlselect>
<plugin>, <pebble>
<try>, <catch>
- Optimizations
- Documentation
- More cookbook recipes
- New plugins
- Report bugs
- Debian package maintainer