Skip to content

behzad888/aurelia-view-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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>**

About

A plugin for loading any Markdown into custom element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published