# grunt-twigtojst

> Exporting simple twig templates to jst

Latest version **0.1.5** (published 2015-11-23) · 0 weekly downloads

## Install

```sh
npm install grunt-twigtojst
pnpm add grunt-twigtojst
yarn add grunt-twigtojst
bun add grunt-twigtojst
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2015-11-23 |
| First published | 2014-03-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Grzegorz Klimek |
| Maintainers | kfiku |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-twigtojst
- Repository: https://github.com/kfiku/grunt-twigtojst
- Issues: https://github.com/kfiku/grunt-twigtojst/issues
- npm.io page: https://npm.io/package/grunt-twigtojst

## Recent versions

- 0.1.5 (latest) — 2015-11-23
- 0.1.4 — 2015-11-20
- 0.1.3 — 2014-03-05
- 0.1.2 — 2014-03-05
- 0.1.1 — 2014-03-05
- 0.1.0 — 2014-03-05

## README

# grunt-twigtojst

Exporting simple twig templates to jst

## Getting Started
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-twigtojst --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-twigtojst');
```

## The "twigtojst" task

### Overview
In your project's Gruntfile, add a section named `twigtojst` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  twigtojst: {
    options: {
      // no options
    },
    twigs: {
      expand: true,
      cwd: 'Views/',
      src: [
        'test1.html.twig',
        'test2.html.twig',
        'test3.html.twig',
      ],
      dest: '.tmp/',
      ext: '.html'
    },
  },
});
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
0.1.4
Add suport for removing blocks

---
_Source: https://npm.io/package/grunt-twigtojst · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
