Socket
Socket
Sign inDemoInstall

accord

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accord - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

lib/adapter_base.coffee

2

license.md
License (MIT)
-------------
Copyright (c) 2013 Jeff Escalante
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@@ -5,0 +7,0 @@

13

package.json
{
"name": "accord",
"version": "0.0.3",
"version": "0.0.4",
"author": "Jeff Escalante <hello@jenius.me>",

@@ -17,3 +17,4 @@ "description": "A unified interface for compiled languages and templates in javascript",

"lodash": "2.x.x",
"glob": "3.x.x"
"glob": "3.x.x",
"uglify-js": "2.x.x"
},

@@ -32,11 +33,7 @@ "devDependencies": {

"clean-css": "*",
"html-minifier": "*",
"gulp": "3.x.x",
"gulp-coffee": "1.x.x"
"html-minifier": "*"
},
"scripts": {
"test": "mocha",
"prepublish": "mv lib/ src; gulp build",
"postpublish": "rm -rf lib; mv src/ lib"
"test": "mocha"
}
}

@@ -39,5 +39,5 @@ accord

# or precompile a string
# (only a few compilers support precompile right now, see below)
jade.precompile('body\n .test')
# or compile a string to a function
# (only some to-html compilers support this, see below)
jade.compile('body\n .test')
.catch(console.error.bind(console))

@@ -47,6 +47,16 @@ .done (res) -> console.log(res.toString())

# or a file
jade.precompileFile('./example.jade')
jade.compileFile('./example.jade')
.catch(console.error.bind(console))
.done (res) -> console.log(res.toString())
# compile a client-side js template
jade.compileClient('body\n .test')
.catch(console.error.bind(console))
.done (res) -> console.log(res.toString())
# or a file
jade.compileFileClient('./example.jade')
.catch(console.error.bind(console))
.done (res) -> console.log(res.toString())
```

@@ -64,6 +74,8 @@

- `adapter.render(string, options)` - render a string
- `adapter.renderFile(path, options)` - render a file
- `adapter.precompile(string, options)` - precompile a string if the adapter has precompile support
- `adapter.precompileFile(path, options)` - precompile a file if the adapter has precompile support
- `adapter.render(string, options)` - render a string to a compiled string
- `adapter.renderFile(path, options)` - render a file to a compiled string
- `adapter.compile(string, options)` - compile a string to a function
- `adapter.precompileFile(path, options)` - compile a file to a function
- `adapter.compileClient(string, options)` - compile a string to a client-side-ready function
- `adapter.compileFileClient(string, options)` - compile a file to a client-side-ready function
- `adapter.extensions` - array of all file extensions the compiler should match

@@ -70,0 +82,0 @@ - `adapter.output` - string, expected output extension

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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