See CommonTask for more examples.
PHP Code:
// load our template $t = new BeeTpl("example.html"); // setting tag or id value $t->title = "Silakan pilih kode dokter"; // setting a tag attribute $t->node("nama")->attr(value,"Dr. Soeharto"); // setting textarea value $t->alamat = "Jakarta, Indonesia"; // see the output $t->render();
Template file:
<html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title>Kode Dokter dan Jadwal</title> </head> <body> <form> Nama: <input name='nama' id='nama' type='text'><br> Alamat: <textarea id='alamat'></textarea> </form> </body> </html>
Nice HTML output (follow W3C standard):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head><title>Silakan pilih kode dokter</title></head> <body><form> Nama: <input id="nama" type="text" value="Dr. Soeharto"><br> Alamat: <textarea id="alamat">Jakarta, Indonesia</textarea><br> </form></body> </html>
Bee Template is released under the term of GNU GPL.
Latest alpha version is 0.3. For older release please see OlderRelease.
You can also see Changelog.
Thank you for downloading... I’d be happy if you leave some feedback here.