Close

javascript

Using node and metalsmith

In my previous post on Metalsmith, I explained how to get up and running with Metalsmith. I used a metalsmith.json configuration file. But it is also possible to use a javascript file and let NodeJS run it. Take this metalsmith.json file for example: { “source”: “src”, “destination”: “build”, “plugins”: { “metalsmith-drafts”: true, “metalsmith-markdown”: true, “metalsmith-layouts”: […]

Read More

Aurelia, ASP.NET and server-side templates

Aurelia is a great framework for a SPA, but one thing that is missing, I feel, is getting server-generated templates. By default, Aurelia uses the moduleId to fetch a static HTML file. Take this configuration: router.configure(config => { config.map([ { route: [”,’Welcome’], moduleId: ‘./welcome’ }, { route: [‘About’], moduleId: ‘./about } ]); }); When you […]

Read More

File upload with Aurelia

Update This post is no longer up to date, as you can now bind to the files attribute of your input element: <input type=”file” files.bind=”files” /> This would bind to the files property of your viewmodel. This was the original post: I’m getting up to steam with Aurelia and really like it. One thing that […]

Read More