04-09-2014, 04:46 AM
Each page could not contain it's own title tag because one document could not contain more than one. You would just have to get it from the filename or something.
Writing a User Manual
|
04-09-2014, 04:46 AM
Each page could not contain it's own title tag because one document could not contain more than one. You would just have to get it from the filename or something.
04-09-2014, 05:08 AM
I was thinking that the entire "book" would be split into chapters, each chapter in a separate HTML file. Each HTML file would be a well-formatted full-fledged HTML, with the header and everything. Then there could be an optional external tool that would take these files, generate a TOC HTML file for them, and optionally one huge HTML file with the contents of each file's body.
Am I overcomplicating things?
04-09-2014, 05:52 AM
The only problem is that if you want to change the header, you have to go and change 20+ files to change the header. And if you're changing the header 10 times a day, that's going to get annoying.
04-09-2014, 05:54 AM
A templating system would fix that. If we use github pages jekyll is the obvious choice.
04-09-2014, 06:09 AM
We would not be using GitHub Pages.
04-09-2014, 06:43 AM
And why not?
04-09-2014, 05:17 PM
What I really should have said is that I don't think jekyll is a good idea - especially if we want to generate one megafile with all the sections in it.
04-09-2014, 09:27 PM
Jekyll can handle that, just have a file that includes all the sections. If you don't want to use jekyll can I recommend Template Toolkit Available in perl and python versions; or handlebars.
04-10-2014, 12:55 AM
I've used basic python templates before and they worked perfectly fine. I'll see about getting a basic generator up in Lua or python, it shouldn't take too long.
04-10-2014, 02:02 AM
I've tried writing a template engine before. It is seriously worth using the existing template engine as they provide loads of extra features.
|
« Next Oldest | Next Newest »
|