Skip to content

heekei/code-template-replace

Repository files navigation

Usage

  1. Create your fragment file header.html in ctr-tmps folder
<div class="header">
    This is Header part.
</div>
  1. Then do it like following
<html>
<head></head>
<body>
{{header}}
</body>
</html>

Result

<html>
<head></head>
<body>
    <div class="header">
        This is Header part.
    </div>
</body>
</html>

FAQ

File extension-name

If source file ext is .js , frag file ext must be .js

Multi-level filepath

{{parentFolder/childFolder/filename}}

It will replace the frag from ctr-tmps/parentFolder/childFolder/filename.*

Releases

No releases published

Packages

No packages published