Skip to content

Support for inline comments #39

@tesk9

Description

@tesk9

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions