Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

symply

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

symply

A simple static site generator.

  • 0.4.1
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

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>

FAQs

Package last updated on 26 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc