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 - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

5

dist/commands/generate.js

@@ -299,4 +299,7 @@ "use strict";

const renderBlockContentFn = data.fn; // if block helper
return new handlebars_1.default.SafeString(helperFunction({ hash: data.hash, globals, renderBlockContent: renderBlockContentFn }, ...passedArgs));
const compileAndRenderTemplateDecorator = (template, input) => {
return handlebars_1.default.compile(template)(input !== null && input !== void 0 ? input : {});
};
return new handlebars_1.default.SafeString(helperFunction({ hash: data.hash, globals, renderBlockContent: renderBlockContentFn, renderTemplate: compileAndRenderTemplateDecorator }, ...passedArgs));
};
}

3

package.json
{
"name": "symply",
"version": "0.2.5",
"version": "0.3.0",
"description": "A simple static site generator.",

@@ -23,2 +23,3 @@ "author": "Oleg Legun <oleg.legun@gmail.com>",

"lint": "npx eslint . --ext .js,.jsx,.ts,.tsx",
"cloc": "cloc --exclude-dir=node_modules,dist --exclude-ext=json .",
"test": "npm run compile && tape test/**/*.js | tap-spec"

@@ -25,0 +26,0 @@ },

@@ -23,2 +23,8 @@ interface SymplyConfiguration extends Partial<Symply.SystemConfiguration> {

renderBlockContent?: () => string
/**
* Compile input template string and render result content
* @example
* compile('{{> myPartial}}')
**/
renderTemplate: (template: string, input?: Record<string, unknown>) => string
}

@@ -25,0 +31,0 @@

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