edge icon indicating copy to clipboard operation
edge copied to clipboard

Inform edge.system of defined aero reader locations

Open SevereOverfl0w opened this issue 6 years ago • 3 comments

Currently there's no easy way to add custom tags and have them loaded. You have to modify edge.system in your local copy.

SevereOverfl0w avatar Feb 02 '19 07:02 SevereOverfl0w

Options:

  • aero/tags.edn (maybe even part of aero's own api?)
  • edge/system/preloads.edn for preloading ns requires
  • just modify edge.system
  • attempt to require a namespace like edge/system/readers.clj (this doesn't work so well with libraries defining readers)

SevereOverfl0w avatar Feb 02 '19 07:02 SevereOverfl0w

This can be solved in dev easier than in production. Dev can have a require added, but edge.main cannot.

Using edge.main is advantageous due to its current logging integration, and future extra features like nrepl/debug mode etc.

SevereOverfl0w avatar Feb 04 '19 21:02 SevereOverfl0w

something I hadn't considered is auto-requiring, e.g. #my.cool.project/foo would auto-require my.cool.project.

This would require performing a first-pass over the config.edn and not performing a real read, but this should be possible.

This option requires the least user intervention.

SevereOverfl0w avatar Mar 06 '19 11:03 SevereOverfl0w