Skip to content

Build static HTML prototypes dynamically with php and Smarty

Notifications You must be signed in to change notification settings

hkirsman/html-warrior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Warrior

HTML Warrior generates HTML from Smarty templates. It does so without loosing the indent in the final output. HTML Warrior includes helper tools like image overlay, template listing and edit links right in the browser ( in the site your're working with )

Intro

I'm a HTML/CSS expert. About an year ago I was working on 50+ page design ( yes, more than 50 pages of HTML ). This project needed constant changing so I was asked: "Can't I use javascript or something similar to replace that 1 thing repeating on all 50+ pages?" I said: "No, there is no solution. It's static HTML." So I constantly had to replace manually or do search and replace.

One day, seeing StaticMatic, I started building my own system without HAML. So now here it - HTML Warrior.

Install ( there's php+apache included for windows )

Download HTML Warrior,
unpack it to c:\www ( for example ),
copy c:\www\_html-warrior\config-sample.php to c:\www\_html-warrior\config.php,
run c:\www\_html-warrior\servers\server2go\Server2Go.exe and
browse to http://127.0.0.1:8080/ or http://YOUR_IP:8080/.
Choose example_site and start reading

HTML Warrior uses 3 types of templates:

  1. layout - the outermost template (head, body);
  2. page - html that gets wrapped inside layout;
  3. partial - template sniplets like youtube, form elements, images (but there's no size limit ofcourse)

I like the image partial. It can take parameters like alt, width, height and ofcourse source. If you omit height and/or with, it outputs img tag with the correct dimensions.

Send me an e-mail for further instructions: [email protected] Just ask anything that's bothering you. We need to create an FAQ.. ;)

About

Build static HTML prototypes dynamically with php and Smarty

Resources

Stars

Watchers

Forks

Packages

No packages published