Skip to content

Instantly share code, notes, and snippets.

@lstarky
Last active February 12, 2017 21:38
Show Gist options
  • Save lstarky/b8efa915ecd4c2ed352a4f5a5e727476 to your computer and use it in GitHub Desktop.
Save lstarky/b8efa915ecd4c2ed352a4f5a5e727476 to your computer and use it in GitHub Desktop.
Liam's basic Aurelia template (with Bootstrap)
<template>
<div class="container-fluid">
<h1>Hello, ${fname}!</h1>
</div>
</template>
export class App {
constructor() {
this.fname = "Liam";
}
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body aurelia-app="main">
<script src="https://jdanyow.github.io/rjs-bundle/node_modules/requirejs/require.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/config.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/bundles/aurelia.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/bundles/babel.js"></script>
<script>
require(['aurelia-bootstrapper']);
</script>
</body>
</html>
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging();
aurelia.start().then(() => aurelia.setRoot());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment