Re: how to remove header and footer from 404 error templates.
just display:none the header adding onn stylesheet
I have read through guide on wiki, as well as jshint config,
but there are few differences between the project's code and guide lines.
Most noticeable are:
if(true) doSomething
instead of if(true){doSomething}
. This behavior makes jshint cry, while being presented all around the code. What about just disabling "curly"?var
definitions before scoped function, for example - categories.js
. Is there a reason for it? I would rather think about putting everything in the function's body to be simple and logical way, but mb I'm missing something?Server, but I have seen more than few files with similar issues.
Thanks for confirmation on styling!
I think you are referring to vars like
Node.js based forum software built for the modern web - File not found · NodeBB/NodeBB
GitHub (github.com)
If that's the case you are right those can and probably should move into the functions where they are used.