Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Javascript users! What does this syntax entail?

What does the less than , percent sign, equals sign mean?

watch: { files: ['<%= jshint.files %>'], tasks: ['jshint', 'qunit'] }

2 Answers

It's actually ERB (embedded ruby), which you'll find in a lot of task runners like Grunt. You can swap it out for whatever you want though. That being said, use Gulp for JS automation.

Steven Parker
Steven Parker
243,658 Points

Those are part of an ASP.NET inline expression, which is not JavaScript. It is evaluated in the server while the page is being constructed, and will never be seen by the client. Instead, the entire expression (between the angles) is replaced by the value that jshint.files contains in the server.

These expressions are strictly for Microsoft servers and are not portable. For more info see this MS Support page.

I see, thank you. The code is from an example gruntfile at http://gruntjs.com/sample-gruntfile

I don't know why the author decided to use an ASP.NET expression for signaling the path to a file. It makes understanding the gruntfile code more difficult for beginners like myself. Anyways thanks again!