B:tags

B:tags provide fast and easy way for beginning and experienced developers to create dynamic web sites and services.

B:tags look like xml and you write them exacly like you would write a html-tag. You're able to build most of your functionality with this easy-to-learn language. When you do run into more complicated situations, you're able to mix and match B:tags together with your own PHP scripts or use the PHP API.

b:page.field

<b:page.field />
Displays content from the current page

b:page.metadata

<b:page.metadata.data />
Displays metadata from the current page.

b:get

<b:get>...</b:get>
Gets content from a datamodel.

b:get.field

<b:get.field />
Displays single field from single content.

b:id.datamodel.field

<b:id.datamodel.field />
Displays single field from single content.

b:structure

<b:structure>...</b:structure>
Gets data from the site structure.

b:structure.field

<b:structure.field />
Displays single metadata field from single content.

b:getcount

<b:getcount />
Gives the number of found items

b:files

<b:files>...</b:files>
Gets files and directories under site's files-folder

b:include

<b:include />
Inserts and executes another template inside a template

b:value.name

<b:value.name /> or <b:value.name>...</b:value.name>
Ties a value into a given name (variable).

b:cookie.name

<b:cookie.name />
Sets or reads cookie variable

b:format

<b:format.funtion>...</b:format.funtion>
Formats the contents inside the tag in a given way

b:env

<b:env.data />
Information of the site environment.

b:if

<b:if>...</b:if>
Displays and executes contents of <b:if> if given condition is true. If not, contents of <b:else> (if present) will be displayed.

b:form

<b:form>...</b:form>
Create a new page or edit an existing page

b:validate

<b:validate>...</b:validate>
Validates fields by the given rules and displays possible messages.

b:sent

<b:sent>...</b:sent>
Displays a message if a b:form has been sent succesfully.

b:notsent

<b:notsent>...</b:notsent>
Displays a message if a b:form has not been sent succesfully.

Example of a page built with Bildy tags

<html>
  <head>
    <title><b:metadata.name/> - The Cheese company</title>
  </head>

  <body>
    <img src="/images/logo.gif" alt="The Cheese company"/>

    <!-- Create navigation -->
    <ul id="navigation">
        <b:structure name="mainnavi" parent="/">
            <li><a href="<b:mainnavi.url/>"><b:mainnavi.name/></a></li>
        </b:structure>
    </ul>

    <!-- Create a product list  -->
    <div class="products">
        <h2>Our finest selection</h2>
        <b:get from="cheese" name="product">
            <a href="<b:cheese.metadata.url/>"><b:cheese.name/></a> - <b:cheese.familyname/><br/>
        </b:get>
    </div>

    <!-- Show page content -->
    <h1><b:page.topic/></h1>
    <b:page.content/>

    <?php
        echo '<p>You can also use PHP anywhere.</p>';
    ?>

    <!-- Footer -->
    <b:include file="footer.php"/>

  </body>
</html>