Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Conversation

@bgmort
Copy link
Contributor

@bgmort bgmort commented Dec 13, 2013

It would be quite handy to be able to include a file only once when it is referenced from multiple files. I've added this support using 'require'. It works like node's require, or PHP's require_once.

@dcodeIO
Copy link
Owner

dcodeIO commented Dec 13, 2013

I think it's a good idea to have it. I'd just suggest to name it "include_once".

@bgmort
Copy link
Contributor Author

bgmort commented Dec 13, 2013

This is my first pull request. Is it better if I make the change before you pull or if you make it after?

dcodeIO added a commit that referenced this pull request Dec 13, 2013
Adding support for including a file only once with 'require'
@dcodeIO dcodeIO merged commit d43acc4 into dcodeIO:master Dec 13, 2013
@dcodeIO
Copy link
Owner

dcodeIO commented Dec 13, 2013

It's OK either way. I changed it, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants