HOSTED (HTML Only Static Template Engine Driver)

Hosted is a PHP library for creating static html pages from JSON data.

Template Guide

  1. Variables

    ${variable_name}

    Example

    <a href="tel:${phone}" class="phone">${phone}</a>
  2. Image Uploads

    _{image_variable_name}

    Example

    <img src="_{about_us_image}" alt="">
  3. Template Strings

    %{@template_name
      <tag attribute="$normal_variable"\>
        <inner-tag attribute="$*image_upload_variable"></inner-tag>
        <other-tag>$another_normal_variable</other-tag>
      </tag>
    }

    Example

    %{@courses
      <article class="col-md-4">
        <figure>
          <a href="$link"><img src="$*image"></a>
        </figure>
        <section>
          <h5>$title</h5>
          <span>$duration</span>
          <p>$description</p>
          <a class="button-rectangle-out solid-button" href="$link">Read More</a>
        </section>
      </article>
    }