|
Cookbook /
RecipeInfo
Questions answered by this recipeHow do I create a recipeinfo box like it is used in the cookbook? DescriptionThe recipeinfo div markup you can see above The styling of the recipeinfo box is done in the GroupHeader as a wiki style with:
In addition there is special markup defined for the cookbook group: Markup('^Property:', 'block',
'/^([A-Z][-\\w]+):(\\s.*)?$/',
'<:block,0><div class=\'property-$1\'>$0</div>');
This custom markup is for all lines starting with a word that begins with a capital and ends in a colon. The markup puts each such line in a div with a class name which is generated from the starting word. Thus a line (anywhere in a Cookbook page) that starts like this: Fish: lemon sauce is good. gets rendered something like <div class="property-Fish">Fish: lemon sauce is good.</div> and naturally most browsers render each div starting with its own line. NotesRelease Notes
CommentsSee AlsoContributorsUser notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |