⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
pug-filters
/
Edit File: README.md
# pug-filters Code for processing filters in pug templates [](https://travis-ci.org/pugjs/pug-filters) [](https://david-dm.org/pugjs/pug?path=packages/pug-filters) [](https://david-dm.org/pugjs/pug?path=packages/pug-filters&type=dev) [](https://www.npmjs.org/package/pug-filters) ## Installation npm install pug-filters ## Usage ``` var filters = require('pug-filters'); ``` ### `filters.handleFilters(ast, filters)` Renders all `Filter` nodes in a Pug AST (`ast`), using user-specified filters (`filters`) or a JSTransformer. ### `filters.runFilter(name, str[, options[, currentDirectory]])` Invokes filter through `jstransformer`. This is internally used in `filters.handleFilters`, and is a lower-level interface exclusively for invoking JSTransformer-based filters. `name` represents the name of the JSTransformer. `str` represents the string to render. `currentDirectory` is used when attempting to `require` the transformer module. `options` may contain the following properties: - `minify` (boolean): whether or not to attempt minifying the result from the transformer. If minification fails, the original result is returned. ## License MIT
Simpan