Closed dr-dimitru closed 9 years ago
@jazeee I've added test app and few new features Also i thought to rewrite package into Spiderable class, but it will bring major changes, so to start package developer will need to run something like:
spiderable = new Spiderable
cacheLifetimeInMinutes: 120
debug: true
ignoredRoutes: ['a', 'b', 'c']
userAgentRegExps: [/^vkShare/i]
This will bring more structure to the code. Let me know what do you think.
You accidentally included a symlink to your home directory in packages. It should be a relative link to the parent directory.
However, it does test correctly, with a 404. The main difference is that you are using the Session.set, which I will test further tomorrow.
But this session is not used anywhere, I've put this into code just for example
@dr-dimitru - Regarding Spiderable class, I am unsure about this. It seems like we could have a Spiderable class within our code, however, we should not require users to create the object. I believe we should stick with a configuration object that centralizes the various Spiderable parameters.
In addition, it will break existing users, since they are reliant on the existing configuration.
Router.options.notFoundTemplate
on server-sidewebapp