-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I'd like to be able to conveniently generate inline comments.
The main use I have for generated Elm code is copy-pastable example code for reusable components. Sometimes these components need to be hooked up to application Msgs in order to do anything. I want to be able to provide example code, but I don't want to write out a bunch of extra TEA wiring, so I will often comment out a non-functional sample implementation.
For example, the generated Elm code that I currently use for a Tabs component example includes commented out code around adding tooltips:
Tabs.build { id = 0, idString = "tab-1" }
[ Tabs.tabString "Tab 1"
, Tabs.panelHtml (text "Panel 1")
, Tabs.withTooltip
[ Tooltip.plaintext "Tab 1"
-- You will need to have a tooltip handler
-- , Tooltip.onToggle ToggleTooltip
, Tooltip.open False
]
]
Metadata
Metadata
Assignees
Labels
No labels