<!DOCTYPE html><html><head><metacharset="utf-8"><title>RequireJS noext! plugin</title><metaname="viewport"content="width=device-width, initial-scale=1"></head><body><divid="wrapper"><h1>RequireJS noext! plugin</h1><p>Helper for loading files without appending the ".js" extension.</p><p> Note that it will append a query string "noext=1" to the URL to avoid inserting the JS extension.</p><h2>Output:</h2><divid="output"style="border:1px solid #ccc; background:#f5f5f5; padding:10px 20px"></div></div><script src="../lib/require.js"></script><script>require.config({paths:{noext:'../src/noext'//alias to plugin}});require(['noext!js/foo.bar','noext!js/foo'],function(foo1,foo2){varout=document.getElementById('output');//data is parsed into an objectout.innerHTML+='<p><b>foo.bar:<\/b> '+foo1.msg+'<\/p>';out.innerHTML+='<p><b>foo:<\/b> '+foo2.msg+'<\/p>';});</script></body></html>