Skip to content
A plugin for loading any Markdown into custom element
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
Readme.md

Readme.md

Aurelia-view-pipeline

This repository is a feature plugin for loading any Markdown into custom element on Aurelia.

We want to create custom component from HTML and turn into any Markdown file into custom element. Let’s start by adding this feature into main.js:

export function configure(aurelia) {
    aurelia.use
        .standardConfiguration()
        .developmentLogging()
        .feature('view-pipeline/resources');

    aurelia.start().then(a => a.setRoot('view-pipeline/app'));
}

Now you can use it into View

<template>
    <input type="text" value.bind="firstName" />
    <input type="text" value.bind="lastName" />
    
    <hello>${firstName} ${lastName}</hello>
</template>

For .md file we can have a file like this:

# Hello !!!

My name is **<content></content>**
You can’t perform that action at this time.