Skip to content

RenatoExpert/onmyoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Onmyoji

Make a dynamic website with static files

Examples

HTML file

Its an example entire html page

<script src="https://cdn.jsdelivr.net/npm/[email protected]/onmyoji.js" integrity="sha384-hash" crossorigin="anonymous"></script>
<script>
	onmyoji_map = 'https://mywebsite.com/example/root/onmyoji';	//	Optional
</script>

Page file

onmyoji-page template='home'>
    <page-cut key='header'>
        Hello World!
    </page-cut>
    <page-cut key='text'>
        I am just a example page!
    </page-cut>
</onmyoji-page>

Template file

<!DOCTYPE HTML>
<html>
    <head>
        <title>
            {{header}}
        </title>
    </head>
    <body>
        {{header}}
        {{text}}
    </body>
</html>

About

Let your static website work as a dynamic one!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published