Skip to content

hasandelibas/asenac-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Asenac

A basic view engine

test.js | Create View

function test(){
  let parent=<div class="parent"></div>
    let child=<div class="item"></div>
  return parent;
}

test.css

html,body{
  margin:0;
  padding:0;
}

index.html | Call View

<script src="https://cdn.jsdelivr.net/gh/HasanDelibas/[email protected]/asenac.js"></script>
<script>
  Asenac("path/to/test.js","path/to/test.css").then( ()=>{
    document.body.append( test() )
  })
</script>