Yes, that’s the one that I found originally. So are you saying that I could use the directives without using comments at all? Because, to me, it doesn’t look like a real preprocessor if there are comment dashes infront of it - that might only be a personal taste, and due to my long work in C++ over all the last months... > Am 29.10.2014 um 21:38 schrieb Jarrod Overson <[email protected]>: > > I assume you are talking about this module : > https://www.npmjs.org/package/preprocess > <https://www.npmjs.org/package/preprocess> > > I've updated and published 2.1.0 to accommodate unwrapped directives (when > used as a library). The slashes (and other formats) are there to keep the > files parsable by their destination environments regardless of whether or not > they have been preprocessed. > > > -- > Jarrod Overson > tw <https://twitter.com/jsoverson> | gh <http://github.com/jsoverson> | g+ > <http://profiles.google.com/jsoverson> | li > <http://jarrodoverson.com/linkedin> > > > On Tue, Oct 28, 2014 at 3:19 AM, Kevin Ingwersen (Ingwie Phoenix) > <[email protected] <mailto:[email protected]>> wrote: > I am currently looking into using oj, a Objective-C like syntax for JS. Why I > didn’t use Objective-J? Its not nodejs-friendly. > > But oj lacks a preprocessor…but I need one. Actually, I only need one thing: > #include. > > I went and browsed npm, but I only found one preprocessor, but it required > slashes - which does not look very clean to me. The one I found wanted me to > do: > > // #ifdef A > … > // #endif > > I just want do something like > > #include <file> > > or > > #ifdef A > … > #endif > > If I can’t find one, I’ll just write my own…but it’s a bit sad. > > Does anyone know a proper, javascript-based preprocessor? I want to use it in > a middleware and preprocess the file, before giving it to oj. > > Kind regards, Ingwie > > -- > Job board: http://jobs.nodejs.org/ <http://jobs.nodejs.org/> > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > <https://gist.github.com/othiym23/9886289#file-moderation-policy-md> > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > <https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines> > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:nodejs%[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/A3D61862-4B72-4487-9C99-D7DED8ED923E%40googlemail.com > > <https://groups.google.com/d/msgid/nodejs/A3D61862-4B72-4487-9C99-D7DED8ED923E%40googlemail.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > Job board: http://jobs.nodejs.org/ <http://jobs.nodejs.org/> > New group rules: > https://gist.github.com/othiym23/9886289#file-moderation-policy-md > <https://gist.github.com/othiym23/9886289#file-moderation-policy-md> > Old group rules: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > <https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines> > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/nodejs/CAJoBgEg4D7nyvRLos-xK%3DMww3c3Rew9fWsM%3DfST1%2B5ORQr__tw%40mail.gmail.com > > <https://groups.google.com/d/msgid/nodejs/CAJoBgEg4D7nyvRLos-xK%3DMww3c3Rew9fWsM%3DfST1%2B5ORQr__tw%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>.
-- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/1A2FDCDF-C36E-40BD-8205-875D5FD6DA43%40googlemail.com. For more options, visit https://groups.google.com/d/optout.
