Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.4 KB

TODO.md

File metadata and controls

22 lines (16 loc) · 1.4 KB

TODO

Here is a list of tasks to do (moved to CHANGELOG.md once done).

Next

  • Support Paragraph Formatting sub-DSL in html_to_glimmer converter
  • Support html_to_glimmer option to render attributes having dash (-) using underscore instead of quoted dash attribute (e.g. input(data_name: 'John') instead of input('data-name': 'John'))
  • Support script-local glimmer config option to auto convert xml attribute underscores to dashes (e.g. html(attribute_underscore: '-') { div(data_bind: 'name') {"Sean"} } ) (similar to global glimmer config option Glimmer::Config.xml_attribute_underscore = '-', but applies locally only )
  • Fix issue with declaring two sibling divs with unopen empty content (no {}) ending up with the latter one nested under the former one
  • Fix issue with using super instead of super() in Opal, which expects super()

Future

  • Support Rails with Glimmer DSL for XML as a server-side templating language alternative to ERB (e.g. file extension .glmr or .html.rb). This is in response to: AndyObtiva/glimmer#11
  • Consider supporting building a string right away (without need for to_s or to_html)
  • Build a tool called glimmerize that takes HTML and transforms it to Glimmer XML syntax
  • handle/encode special characters such as #, {, }, and .
  • CDATA support
  • Include a command that converts HTML or XML into Glimmer DSL for XML syntax in Ruby.

Maybe