nerdzeu/nerdz.eu — pull request #21 by Robertof (2014-01-09 22:32:57+00:00)
Title: Major update to our codebase. MANUAL INTERVENTION REQUIRED!

The following update changes some important core things. This is what has been changed:
- completely rewritten config file parsing. The new config is **NOT** compatible with the old one. Please copy the updated skeleton from the setup directory and update accordingly.
- important additions to the template system. You can now specify static variables and language strings directly from your template.variables file. This is used by the default template too, so you can use that as an example.
- optimized the default template. Various widths have been adjusted and it should be more lightweight. Removed the static delete-comment base64 image which was sent in each comment (it is now a cached PNG). Fixed the automatic post trimmer after some breaking changes. Rewritten the 'hidden posts' box which is now localized and fully table-free.
- new variables are sent in the

tags. The Nstatic variable can be retrieved with N.getStaticData() and it is retrieved from the template.values file. The Nversion variable specifies the current revision of the NERDZ codebase. It is sent only when the outputVersion variable is set to true.
- new versioning system. This one should be totally human-free, so we don't need any changelogs. It is based on GIT revisions. Each time the codebase is updated (by using 'git pull'), the revision automatically updates and links to the GIT commit.
- as per Jest request, it is now possible to use N.html.getNotifications without resetting the counter. Just pass 'true' to the function.
- new language entries for the 'Hidden posts' feature. Please use our localization system when possible. It should be even easier to use it from clientside javascript with the new Nstatic feature.
That's everything that was changed in this commit. Again, REMEMBER TO UPDATE YOUR CONFIG. The old configs will not work.
** NOTE to who is reviewing this commit **: if you are going to merge this pull request, please merge the template one too, otherwise bad stuff may happen.