Skip to content

Conversation

@nlopes
Copy link
Owner

@nlopes nlopes commented Jan 14, 2026

Add explicit output routing to converters-core with three modes:

  • Derived: derive output path from input (e.g., .adoc → .html)
  • Stdout: write to stdout (via -o -)
  • File: write to specific path (via -o path)

Refactor Converter trait (renamed from Processable):

  • convert() is now a provided method with routing logic
  • Add convert_to_stdout() and convert_to_file() provided methods
  • Add write_to() as the core method converters must implement
  • Add derive_output_path() returning Result to properly propagate errors
  • Add after_write() hook for post-processing (e.g., CSS copying)

Add explicit output routing to converters-core with three modes:
- Derived: derive output path from input (e.g., .adoc → .html)
- Stdout: write to stdout (via -o -)
- File: write to specific path (via -o path)

Refactor Converter trait (renamed from Processable):
- convert() is now a provided method with routing logic
- Add convert_to_stdout() and convert_to_file() provided methods
- Add write_to() as the core method converters must implement
- Add derive_output_path() returning Result to properly propagate errors
- Add after_write() hook for post-processing (e.g., CSS copying)
@nlopes nlopes merged commit d8b2f53 into main Jan 14, 2026
2 of 3 checks passed
@nlopes nlopes deleted the nlopes-add-output-destination branch January 14, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant