posthtml-web-component
PostHTML plugin for Server Side Web Component Render.
Feature
- Base Web Component Server Side Rending
- Component as Sevice
Advantage
Explanation
Web Component
Must mention that Web Components
supported by posthmlt-web-compoent
don't completely follow the Web Components draft.
A typical posthtml web compnent look as following:
<!-- clock.html --> HH MM SS
This is a runable component itself. Consider There is a index.html
:
html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="import" href="./clock.html">
</head>
<body>
<clock></clock>
<clock></clock>
</body>
</html>
After posthtml-web-component
's transforming:
HH MM SS HH MM SS
Work fine!
LinkImport
We have two type LinkImport
, local and remote.
<!-- local LinkImport --> <!-- remote LinkImport -->
The difference of these two type is remote LinkImport
could call an remote service, this is to say remote LinkImport
could be dynamic.