Menu

#3 revamp of template structure

Major_Mods
open
nobody
None
2
2006-10-06
2006-10-06
Jakykong
No

Hey! so maybe it wasn't perfect. The original purpose
of the program was a very, VERY rough draft. However,
one can see that when formatting HTML pages, there's a
little bit more than "head," "section," and "footer."

This is just a thought, but perhaps the program should
be somewhat restructured to support a totally different
way that automates the "<html>", "</html>", "<head>",
"</head>", "<body>", "</body>", and still support the
old way (so, obviously, we don't want to totally make
it impossible to use the old style for some reason,
like maybe a super-customized <body> tag.

The template should also include, if these tags are
automatic, some basic settings about the page (like, a
background. One that defaults to white. Or text color,
one that defaults to black, and so on).

This is just an idea, this particular design may need
to be worked on before it's implemented in final form.

%head
now it's used for anything you'd put between the <head>
and </head> tags

%tbody
used for anything you want to put in the body of the
document, before sections are processed

%footer
used for anything you want below the sections, as the
%footer section is used for right now. However, it
wouldn't need to have </body></html> in it, since the
program should automatically take care of these.

%section should remain unchanged.

the program should now take some options; the file
loading should incorperate long options or
single-character options. But some other options should
be included.

-O, --old-style
make the program use the old-style %header, %section,
%footer structure in the template file (not default)

-t --template=template_file
set the template file to use, if not specified, use the
already-standard default template, ~/.aaid/template

--no-tilde
turn off tilde commands, thus, simply print everything
out as it comes (except that % is still special as it
delineates the various parts of the template)

the data and output files should be as they are right
now, after the options.

This isn't a huge priority; obviously what currently
exists DOES work. it should work while other things are
implemented

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.