gourmet
gourmet copied to clipboard
moving to html5
Hello I'm new to programming and to Github, I'm just an hobbist web designer. I wish to improve the html exporter to make it more semantic, more html5 complaint, and the relative styles, so I tryied to change the html exporter commenting my changes and my wishes. I hope that someone cuold complete my efforts. I also propose a modified CSS, more responsive (rem based), minimal, and with a @media print that only works as a external CSS, non embedded - trying to fix this - (anyway if we change the html we shall change also the css). Thank you for your help, patience and attention. Proposed structure:
<ARTICLE id="recipetitle" lang="XX"> (we shall set a language attribute in the database and have an unique ID for each recipe)
<header>
<h1>title</h1></header>
<FIGURE>image</FIGURE>
<ASIDE>
<TABLE>header elements</TABLE>
</ASIDE>
<SECTION>
<TABLE>ingredients</TABLE>
</SECTION>
<SECTION>instructions
</SECTION>
<SECTION>notes
</SECTION>
</ARTICLE>
I managed to obtain what I wish (I'm using it actually), but it can be further improved. Please see my comments in the code - they start with a # AR...
After updating my machine from win7/32 to win7/64 I'm not able any more to use my own modifications - for some reason when I suobstitue the 2 files I loose the ability to export to html
This is a good idea. It would be nice if it was done with an (X)HTML microformat like h-recipe (v2) or hRecipe (v1).
EDIT: After doing a little more investigating of the recipe web landscape, I think that using http://schema.org/Recipe is a better move to support in HTML format. It is widely deployed today.