yesodweb/yesodweb.com-content

Chapter "Widgets": text about inserting Julius scripts

Closed this issue · 1 comments

z2v commented

Section "Constructing Widgets" (first paragraph) currently reads as (highlighted by me):
"In order to use widgets, you’ll obviously need to be able to get your hands on them. The most common way will be via the ToWidget typeclass, and its toWidget method. This allows you to convert your Shakespearean templates directly to a Widget: Hamlet code will appear in the body, Julius scripts inside a <script> tag in the head, and Cassius and Lucius in a <style> tag."

Actually, scripts are inserted at the end of the body as shown in Synopsis section. So section text should be adjusted.

Thanks!