Skip to content

Separate code and add extension points - #57

Merged
dreampuf merged 5 commits into
dreampuf:masterfrom
redneck-f25:extension-points
Mar 16, 2026
Merged

dreampuf merged 5 commits into
dreampuf:masterfrom
redneck-f25:extension-points

Conversation

@redneck-f25

Copy link
Copy Markdown
Contributor

For further improvements we should separate the code into separate files. Do you agree?

Especially for my use case I need extensions points to hook into the core. Later, I'll drop a note about this.

@redneck-f25 redneck-f25 changed the title Separation code and add extension points Separate code and add extension points Mar 12, 2026
@redneck-f25

Copy link
Copy Markdown
Contributor Author

@dreampuf I want use GraphvizOnline as a transparent lightweight viewer for .gv/.dot files. That's why the index.html should be as small as possible.

There is a directory with mod_autoindex and RewriteRule as below.

RewriteCond %{QUERY_STRING} !(^|&)raw=?(&|$)
RewriteRule \.(dot|gv)$ /GraphvizOnline/index.html [END]

Furthermore, I need to manipulate the SVG before it is rendered (i.e. add a CSS stylesheet) and I need to generate the DOT code from other formats and write the result to the editor.

@dreampuf
dreampuf merged commit ecaf161 into dreampuf:master Mar 16, 2026
@dreampuf

Copy link
Copy Markdown
Owner

This is something I haven't done because of historical issues. Thanks!

@redneck-f25
redneck-f25 deleted the extension-points branch March 16, 2026 09:07
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.

2 participants