Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some way to include files #48

Closed
niosus opened this issue Jun 14, 2016 · 5 comments
Closed

Some way to include files #48

niosus opened this issue Jun 14, 2016 · 5 comments

Comments

@niosus
Copy link

niosus commented Jun 14, 2016

Thanks for the awesome work! This tool is by far the best!

I don't know how to formulate this issue properly, but let's try.

I feel that it would be extremely beneficial to be able to have the diagram code organized in multiple files and being able to include (or import) them, e.g. #include "some_class.noml"

I understand this is a long reaching issue, I guess it depends on #29 or #26

What do you think of it? To me that is the only thing that really would make creating big diagrams much easier.

@skanaar
Copy link
Owner

skanaar commented Jun 17, 2016

Thank you 😄

Sound very interesting, and as you say it is probably relevant for a setup where you run nomnoml locally.
Since #29 was reported a rudimentary SVG support has been added which means that a local setup would be possible.

Perhaps it could accept #include <path> directives if run locally?

@niosus
Copy link
Author

niosus commented Jun 17, 2016

Yep, this is exactly something I would imagine.

I don't know if you share the view, but my usecase would be the following: I have a project and I sketch out uml before coding. I would like the people who will read my code to have easy access to the diagram that I have sketched. So it seems to me that the best way to represent it would be to have a folder with multiple files and a command or a link to paste in browser that would show them all as one diagram, so I could put this link to the readme.

What are your plans for running the nomnoml locally?

@skanaar
Copy link
Owner

skanaar commented Jun 17, 2016

I haven't had any plans in that direction really. But I would be happy to get some pull requests if you have the time.

But nothing is impossible, I have a small backlog of stuff that I really would like to implement.

@skanaar
Copy link
Owner

skanaar commented Jun 20, 2016

I've done some experiments in 0ec91f0 that you can review. I will probably put the command-line-stuff in a separate node-module.

@skanaar
Copy link
Owner

skanaar commented Apr 9, 2017

This feature is now officially published as part of version 0.1.0. 😄

@skanaar skanaar closed this as completed Apr 9, 2017
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

No branches or pull requests

2 participants