Skip to content
Rob Lauer edited this page Apr 30, 2025 · 29 revisions

Bedrock

Interested in contributing? Here's your opportunity to be part of an open source project.

Try Bedrock

Docker Images

Why Bedrock?

  • 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

Examples:

A JSON Service

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>

A Simple Web Page

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>

Bedrock Tags

<var>
<foreach>, <if>, <unless>, <while>
<sql>, <sqlselect>
<plugin>, <pebble>
<try>, <catch>

Opportunities to Contribute

  • Optimizations
  • Documentation
  • More cookbook recipes
  • New plugins
  • Report bugs
  • Debian package maintainer

Clone this wiki locally