symply
TypeScript icon, indicating that this package has built-in type declarations

0.10.7 • Public • Published

Logo

CAUTION: This generator is used internally in our systems and its API is constantly changing! Please wait for v1.0.0.

A simple pluggable static site generator with great flexibility and control.

Symply is based on a well-known, fast and reliable Handlebars.js templating engine.

Custom Helpers

Embedded Styles

{{embeddedStyles 'src_dir_relative_path_to_style.css' attributes='media="(min-width: 500px) and (max-width: 1000px)"' }}
<style media="(min-width: 500px) and (max-width: 1000px)">
    /* ... */
</style>

Embedded Script

{{embeddedScript 'src_dir_relative_path_to_script.js' attributes='async type="module"'}}
<script async type="module">
    // ...
</script>

if_eq

 {{#if_eq var 'value' }}
 var === 'value'
 {{else}}
 var !== 'value'
 {{/if_eq}}

if_ne

{{#if_ne var 'value' }}
var !== 'value'
{{else}}
var === 'value'
{{/if_ne}}

Tips

Render partial by its passed path

<!-- index.html -->
{{> partials/UserCard iconPath='svg/icons/user-1' }}
<!-- partials/UserCard.html -->
<div class="UserCard">
    {{> (lookup . 'iconPath' ) }}
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i symply

Weekly Downloads

0

Version

0.10.7

License

MIT

Unpacked Size

231 kB

Total Files

36

Last publish

Collaborators

  • oleglegun