Tappeto Magico is a HTML preprocessor. It makes use of template file (like HTML file), project file, source files and optionally a tag file and a definition file. Input and output directories can be defined. Different directories can use different layouts. Display image size and resolve links automatically. Multiple version of the same website can be generated. User define macros, file alias, can process updated files only, generated updated file list. It inserts source into template which allow more flexible layout design instead of traditional header and footer files. Substitution priority and recursive substitution. Compatible with WYSIWYG editor and text editor. Directory structure can be replicated.