DaClown
DaClown

Reputation: 4569

Templated HTML Editor

I'm looking for a HTML editor that kinda supports templated editing or live snippets or something like that.

Background: I'm working on a website for a friend. As there are no specifications what the webspace/webserver can or can't do, I decided to make it a pure HTML/CSS page, or rather 10 of them. I wrote a template, copied it 10 times and edited the content. And guess what, the template has to be changed.

Therefore I'm looking for a (HTML-)editor that has some kind of live template system where I can edit the content in as it where plain text and then save the project into the 10 pure HTML/CSS files.

I thought about using PHP (the only script language I've some knowledge in), but writing the underlying template script would cost me enough time that I could change all files by hand. I'm not that familiar with AJAX to know if there's a way to load content from another file. If so, this would be an option if there already is a script. With Webdeveloper (firefox extension) I could save the generated source code as HTML/CSS.

Thanks in advance

Edit: any hints how to do this without an editor are welcome

Edit2: In my mind the tool looks like a plain old text editor like SciTe, but capable of editing multiple files simultaneously in the same text area, so it looks like editing one ordinary file, but actually it's a whole bunch of files.

Upvotes: 1

Views: 962

Answers (3)

Jakub
Jakub

Reputation: 20475

Maybe I am way off on this, but why don't you look into an Open Source Content Management System (PHP/MYSQL)? There are MANY light systems that are not like Drupal, Joomla (if you do not want the big bulk of those CMS's).

There are even a few good ones for light web design that are flat file driven.

That would be my suggestion, at least if not for this project, look into it for future projects.

Here is an example of a great micro CMS that would seem to fit the bill for what you are doing: http://www.mini-print.com/

Upvotes: 1

Cruachan
Cruachan

Reputation: 15971

Dreamweaver will do this for you, it's had HTML templating of the type your describe built in from very early versions (because from how you phrase the question I do not think you're thinking along the lines of a PHP templating engine such as Smarty, but some sort of HTML layout formating)

Although I regularly look around for Dreamweaver replacements, and I've certainly been impressed by Aptana, I still tend to use Dreamweaver in my development stack simply because whereas I can compensate for some of the more coding-orientated features it misses, I find the WYSIWYG nature of the editor invaluable.

Upvotes: 1

dr. squid
dr. squid

Reputation: 826

I would have used a template engine. I wrote a post about a dead simple script using the Dwoo template engine and mod_rewrite, where I am taking the uri and loading the forrect data and template based on that. You should be able to get it running in a few minutes.

Upvotes: 1

Related Questions