{"_id":"vite-plugin-twig","_rev":"7-144440d5b3e9b9878b9a7fb10d99a090","name":"vite-plugin-twig","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"vite-plugin-twig","version":"1.0.0","license":"MIT","keywords":["vite-plugin","twig"],"author":{"name":"Andrea \"Fiad\" Fiadone"},"main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"homepage":"https://github.com/fiadone/vite-plugin-twig#readme","publishConfig":{"access":"public"},"dependencies":{"twig":"^1.15.4"},"peerDependencies":{"vite":"^2.0.0"},"gitHead":"f4e029fb82a5f342fa26c9def894face8950b0eb","description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","_id":"vite-plugin-twig@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-4mqzTKcu0z1lBC6wuDCHUwxSx7wWADT/twRXxriIFvShW/oo+Tvn1HSwRUYNpi5mDaCJ9YqNS5reHd6nkNvBJA==","shasum":"f794b8c2c50927d2d3fe654a3654910962228e0b","tarball":"https://registry.npmjs.org/vite-plugin-twig/-/vite-plugin-twig-1.0.0.tgz","fileCount":6,"unpackedSize":6615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0vu5CRA9TVsSAnZWagAAEYUQAIcpM9l8HAclrvEDgKk1\nOs9aVTJkicrd39VlORgKEezBlkC38PRT349O/lR7w89YSfQlH2h2FmsfYqRd\ne1/80+jltTEmM+htPIQ6go3boMGqbE4Xnll9IuwhzeGLJTSMlmxlLXjhUlbb\nWCkJ0f0HIPjKvPukUk3vzgC9Zcuv6hHbVQW0hrPEnZRJf9kgjwzZXBhzlMSu\nFtDkZfNYWCoKpljK/wnWJzEp5UiVEOah4z4TQ4T/f5RiLzxHqPQyudgpB6f0\ncOnGw2ZcoOdnkDGAACg9xNzaEu+np48vFuWO5b4qRhd8BAGx02dkgrRfoTZX\ncb2H82FqD4qaa3DMy6+hiOf2nW8VERnyuCfkjfIoTc+S0bBJ7UDDVAn/zp8S\nVx2Su4m/c0bfSzLT/hNoltRquRe+CaiHddRpa0k44Uyn4xTo+noQgu1oiFi8\nYDhphr/tr9I1J0LP7WCUbCiXibTZjLNXFfvqK0nX2pcC2KHsRUCqnVQ2B3Ro\nxbR8p1PZ8AqpVoy77tgX4G+VWjk2q1nMPqIwFZkSNOqYfKx9nD5PnotmdmJG\nnON+ltCtFDn0OL3Rp4yVaA+lvmWk5qulgKoxKNPtuECCsY5GHh1ji6FPMPd6\n+tPHeo0BjLrdwkNPzYJY37ZCzijwugIMgRxJucJwhrxDRIpFQ989a2O4TBBe\n3eWg\r\n=wjS2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDvTzNVgxoLl8JVI3HoMno3tK2vBwB1XD+oN9NzhuZyXAiBcFCOlKMUh0Ax3zk0K608NtAzKTyzPm1T8XEiiRtK7Ug=="}]},"_npmUser":{"name":"fiad","email":"hello@fiad.one"},"directories":{},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-twig_1.0.0_1641216953782_0.6570057373479663"},"_hasShrinkwrap":false},"1.1.0":{"name":"vite-plugin-twig","version":"1.1.0","license":"MIT","keywords":["vite-plugin","twig"],"author":{"name":"Andrea \"Fiad\" Fiadone"},"main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"homepage":"https://github.com/fiadone/vite-plugin-twig#readme","publishConfig":{"access":"public"},"dependencies":{"twig":"^1.15.4"},"peerDependencies":{"vite":"^2.0.0"},"gitHead":"aa412e2d817c85777e9ffefbfa57e2944ea3a53a","description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","_id":"vite-plugin-twig@1.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-v0dKYgqNnLu0Rc9CNtJMliAWkt0f5jfm9Yy/LUz0OoOVW5aXLMGRuOpDzNsxCk2bCEMD5AkL9DpwF8NCSIulPg==","shasum":"adca6659a98cfe986cb8059ed1b9038185a1dfc1","tarball":"https://registry.npmjs.org/vite-plugin-twig/-/vite-plugin-twig-1.1.0.tgz","fileCount":6,"unpackedSize":7308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0znKCRA9TVsSAnZWagAAK2UP/3hBTuE4aY0YHL+PJVN6\nFJ4Oyqj+eUe4kAUnztD+gWv9N1Irjhyp2TcZbwXiKyRmT7OHvWvgyqfetxiV\n49+PQEyW6Az2Kq62SILbt1x+FmBdV9m58HnmBwcODrfyrVOZzxi3iyXmsXQt\nBPFwAdkfTPOKAxU5AbYVo3yCsKG081TzMfGSZTs0JxTPaZCD49itF1W1eVZ7\naRKyYsQRiOPfx4sMYOWacN54F74+oeUkmdRFQ98P+fjTsygexrs0A5pr9xWY\nvgc3IO6O1s4klwGu7NvmhdBps9OIzFM7yXgE68hOwS5PWpDjTcW3Dxz2kUxY\nndhOCTcjTYRUGjSH7I5YUOE2SZzFeg8AC1W8Iz2sU9k8kYmKENgawO7NwK8E\nbeOt3VILZ6w9CvRwQ5/m2BcDT+FKkJQKsn63WWROKHX9ARrp8Sjb3WvbYS6e\n85so/dGghiqtt6llJxe/ON4cLzaNzBcvu6o3bdu0FI8iCjirJYpukmRDOmjl\n70PkGcdYf/QBwGFoY31B1oxIsdpmjImLFPX2+9rN0KscXN+q51dd4vWC3r6B\nNXOYaazKrpqtoQZTOeOZ4z3iLWGMf4g0vShDmdY294L45GK/s891LrgLjj//\nf9bCT1YfwvknrRF1CGWKRky/dyLilBlq13OYBSMwnln2LEnLGb5dGRkBqvei\npYKM\r\n=eFHf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDwxFZObnf4dtFLMU4mPTyXa1uB9ttJi/8Tz0684L0e3AiAs8JqfPdrJXwiIjLfUYAG7y+oB78Deg9a0JNCEvRHIlQ=="}]},"_npmUser":{"name":"fiad","email":"hello@fiad.one"},"directories":{},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-twig_1.1.0_1641232842047_0.060121320120902766"},"_hasShrinkwrap":false},"1.1.1":{"name":"vite-plugin-twig","version":"1.1.1","license":"MIT","keywords":["vite-plugin","twig"],"author":{"name":"Andrea \"Fiad\" Fiadone"},"main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"homepage":"https://github.com/fiadone/vite-plugin-twig#readme","publishConfig":{"access":"public"},"dependencies":{"twig":"^1.15.4"},"peerDependencies":{"vite":"^2.0.0"},"gitHead":"b4c29cb0e26cc18ae4fd22eda36630d366b8eed3","description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","_id":"vite-plugin-twig@1.1.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-UXgM/Mw1+SAasOg8Ua24EoJWcNpv5eQ2/gl7Tpnla4CiC+c+/zHbBzznZ978XTQqWPRN5yuC2QGKsqR/GAPw+A==","shasum":"92eee57d159e6bf6385a2153e9eb2567e46bfc72","tarball":"https://registry.npmjs.org/vite-plugin-twig/-/vite-plugin-twig-1.1.1.tgz","fileCount":6,"unpackedSize":7375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMPhiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMrBAAiT8nkRgUdT2Jp2iqxh64k4DpNQ1iJNgZREliAVjNBeFKaL9o\r\neDqUB/b1YKwD+9m3Xib6v8et6tT06rBwBlGmXoMc/pEw5O2JMy6Tu8M15/Uq\r\nJz2tiPR1A3++7sTTQdUXW8cusJzC/fYbYt8lXL1/womeOBtoFcgh1uKoZVxC\r\noRRdkLGQbsdfzifl6DnJEX0V6rFNNosnd6raWUF+VltLY4F+caLPxTvTVKIs\r\njNu1egRMN3H7YZQ806SHcnprDIlVPYZ4iDJGVmTEH6sJ0hxUyv4s6prmVoS9\r\n75N71O/auustGDoXzajq+5W7vpqAuwd+LYhE4X3U7oUss45jPVQ4KdHgGqox\r\nMXjpoaijD3VrbCFQ15fs/X+7W6lfej8gZlgZjMyCqkw6MXSn6sC3yevYcLYe\r\nSSPd0HsBV+pw56Gfulb/AMLPBSBmcmviuL8JMpta7jKI7T3/Y/5AJX+lttGS\r\noHYAfiSQpZr1vR6/5T2PHF8wF+LhC927n60PH1a+AoSX5+oso2SJqZ1E+tS3\r\nMOCxQxf59PCF+ptgkbuNAWzHkIVEJPFI7MPI1WljShIH6gl+0A4IChOmLDp9\r\nbT2WQFnd5bRIdbmD8RyuBfFGYhYUxGkpkHwpMFfnqwB0P0cPW8A98RWmxztK\r\nubxy3hL11n+6ham6XELMm7cx2F6BFaPPRfQ=\r\n=nnhz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUKLpAKia73ma/ZqgVSjgmplDCOhbzopIjhy8Ndbo0xAiEAuUz6dznYDbZ6JeG9MWVYU0cJ6s5cDqcpB/UqJCASc8Q="}]},"_npmUser":{"name":"fiad","email":"hello@fiad.one"},"directories":{},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-twig_1.1.1_1647376482279_0.005249179791981806"},"_hasShrinkwrap":false},"2.0.0":{"name":"vite-plugin-twig","version":"2.0.0","license":"MIT","keywords":["vite-plugin","twig"],"author":{"name":"Andrea \"Fiad\" Fiadone"},"repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"homepage":"https://github.com/fiadone/vite-plugin-twig#readme","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"sideEffects":false,"scripts":{"build":"yarn lint && unbuild","dev":"unbuild --stub","lint":"eslint .","start":"yarn dev && cd playground && yarn dev"},"dependencies":{"twig":"^1.15.4"},"peerDependencies":{"vite":"3.x"},"devDependencies":{"@fiad/eslint-config":"^1.0.3","@types/node":"^18.6.2","@types/twig":"^1.12.9","eslint":"^8.20.0","rollup":"^2.77.2","typescript":"^4.7.4","unbuild":"^0.7.6","vite":"^3.0.3"},"publishConfig":{"access":"public"},"gitHead":"f0a465904a90637c6c0627ecbc60f68d59c40e3e","description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","_id":"vite-plugin-twig@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-HF8fvVsvLfG6Kv/YB85bhi/bJ9JoCadXH5CmklnQ2WeEdgku5y5W8lzlP+ZCRTfneX01YNktUFVYWSnRkFRj7A==","shasum":"a522045a5874ce0fa3dbcdd8f56a99905c94a714","tarball":"https://registry.npmjs.org/vite-plugin-twig/-/vite-plugin-twig-2.0.0.tgz","fileCount":7,"unpackedSize":12514,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp2LPwjAlg8Jf4wAKzFKxfq3e1WzgbSG4EZPH5SiB/owIhAJBdEEXcHdRB0uXeiAGSiCwAlcNnKXNE39aeOMqi69bH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi5UZ6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoa7g//VbWmXw90QogtpBPI5sqSqvpdNL8cLufLg5KdhfaI8NZPLnyb\r\nSs3nOq0UxHnftX/Dap7ptBndYWtgHAixG04nFhRu7bSbE31XW8/j0JZhgM+6\r\nSQqG9lmwj/7tmuHzCYRgLcZ2XrnfBQMzjwHgxj55mgkasTx3s6f/LmgyWhrx\r\nVDp+i08VgN6UaMXLjQUx5L4ILWf5GGnsIjOKRWgHefbymtutCY8yb1qddhbI\r\n8xSXc9qcS1E1ZyDOXR0uSnOoTHflwCFa/AnkybzEEfnXVxi+kcu5x3xuM7dC\r\nDVlLq3ZfuB8CGX5NFx6Gnzapz/ylVItirfTKFiFaRfwZYYca3wJYW6RuPf5t\r\ni1QcviGU89UVU0bDMfrkYyLUUArPmsZ33QpRdZFi6cU14FEA49jgTckqjBEH\r\nX1HGR4OP/U+6m26171jgcdA1xPTuD1YM9Pt4Yn+bUFQcQ6WpoR+LAliLdHRT\r\n60ugohkt6RK0w95G82+ndAIYcW3/k60PySlvYv+5B4bdmHaSGYYQeIpLJLbc\r\nyOXZR4u/8lOXYTUDovHbaGLtjC4H69jK9YB5Hu903wIT0snbfFMj2afhfPog\r\nO9a2Vb00na5HY8M9UtM2m0TOt+mr/zGJMucDiEHxctRXQyCVl06latGQyAiJ\r\n050w7vBMGk/5+WWpaOMaKr7Cjt7T2L39uV4=\r\n=vK8I\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"fiad","email":"hello@fiad.one"},"directories":{},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-twig_2.0.0_1659192954200_0.6197375431215075"},"_hasShrinkwrap":false},"2.1.0":{"name":"vite-plugin-twig","version":"2.1.0","license":"MIT","keywords":["vite-plugin","twig"],"author":{"name":"Andrea \"Fiad\" Fiadone"},"repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"homepage":"https://github.com/fiadone/vite-plugin-twig#readme","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"sideEffects":false,"scripts":{"build":"yarn lint && unbuild","dev":"unbuild --stub","lint":"eslint .","start":"yarn dev && cd playground && yarn dev"},"dependencies":{"twig":"^1.15.4"},"peerDependencies":{"vite":"3.x"},"devDependencies":{"@fiad/eslint-config":"^1.0.3","@types/node":"^18.6.2","@types/twig":"^1.12.9","eslint":"^8.20.0","rollup":"^2.77.2","typescript":"^4.7.4","unbuild":"^0.7.6","vite":"^3.0.3"},"publishConfig":{"access":"public"},"gitHead":"4f5c3772afdd575c54c43157ed9979f176d8f3b5","description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","_id":"vite-plugin-twig@2.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-j1NwrLEFIV66ZtsyBOeEMgGUlKC+SPYrEAZtyE+h1ZCfA7l+spiQw+Cs+mYjdmyHVZAqAuv/1GtrP/yR/F7VyA==","shasum":"952d1b4549b6e0094afbfe19f8ab32c5ae833e38","tarball":"https://registry.npmjs.org/vite-plugin-twig/-/vite-plugin-twig-2.1.0.tgz","fileCount":7,"unpackedSize":8362,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSpSd6F3e7dlEgOG8xopdqKXT3VKsMu62DYM2kBz/7cAiAfbbHykj2eADUpLjVwV7g7BLc72PA3oXrRDu1VZZt8/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7nlEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlaxAAnQ/n3eIfdee53U6U8HK9rqxBIPK/bsQxvL6iBFqM2F5y6lE4\r\nyCdxt1jQlyC5DrUtdK0Ym7EOQPqiAiITkhF3cDSCZv4+4iKik5Uyiz2tZhIn\r\nrsg0SQZuFH+RoTAfjS/fpWaTrbjigdbYwjGfP3a4GLZqa4wKYerILd3A2Vs0\r\nD03x928lFkC+B28zrXekMztnUjWzIbJc6T9N0T2yYVjCFpv5rEZ6C6zO2/sM\r\naut9wRkQ+t2GADYaYH/MqNZ4iPQFXHLQ61Pd1S1mqa1ybOsZkGapD6gEoVHq\r\nFlygBbR4EBk7n2Uol+xN6UYdBJL0N2tXuI58HRkMQ7/F4ncsOBuYgzEXVubU\r\nWIHaHgNnh7VsFJyRvM6rZeh8uYRIGfwMhWLPQF00ccKYzrOyb4gdIemkAjSI\r\njxfMcFNYIxqH2PhbHkTmovP2FaUeBmGP/tYhG1PESxSyUS1Tki7VaTduke4k\r\nMjzMNZaMmKFKBGozCiahO3+Wxo5wDE5Hc/9nlFj3O3D3hgwdsjJ08EiPvzas\r\nLmnJcHL8aoS1NpUBG90sn0gU64C6+dw/wLXV+x4O73Por6GsEhkZ7YwkMgnz\r\n3BM2MF4jhbZFi61qfIr3NC7yzQTK4xsMkhoHFSUCSXf+M/FH4yfN7K5g0f8A\r\nj6obsskJ9WJTLPpK9Axz4yfvP5pOnz7Ih8Y=\r\n=g4wT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"fiad","email":"hello@fiad.one"},"directories":{},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-twig_2.1.0_1659795780342_0.8568446716971567"},"_hasShrinkwrap":false,"deprecated":"Version deprecated. Please use 2.1.1."},"2.1.1":{"name":"vite-plugin-twig","version":"2.1.1","license":"MIT","keywords":["vite-plugin","twig"],"author":{"name":"Andrea \"Fiad\" Fiadone"},"repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"homepage":"https://github.com/fiadone/vite-plugin-twig#readme","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"sideEffects":false,"scripts":{"build":"yarn lint && unbuild","dev":"unbuild --stub","lint":"eslint .","start":"yarn dev && cd playground && yarn dev"},"dependencies":{"twig":"^1.15.4"},"peerDependencies":{"vite":"3.x"},"devDependencies":{"@fiad/eslint-config":"^1.0.3","@types/node":"^18.6.2","@types/twig":"^1.12.9","eslint":"^8.20.0","rollup":"^2.77.2","typescript":"^4.7.4","unbuild":"^0.7.6","vite":"^3.0.3"},"publishConfig":{"access":"public"},"gitHead":"453d74fab2e0a2442272dd9973bdc55b3773cdc6","description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","_id":"vite-plugin-twig@2.1.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-InQAu+HZ7ctf5HdcwFSlvC8usVmIUACQdbLjwFeKZ1b5ey+9M0ptMz9CN4ysY5tQsOmMwNxUK6bgRRLQNnziVw==","shasum":"ac1d46ce7bd545f77c086467b5f534729f5db823","tarball":"https://registry.npmjs.org/vite-plugin-twig/-/vite-plugin-twig-2.1.1.tgz","fileCount":7,"unpackedSize":15032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT81mjOcsuLmcPpQFaHiQmo6poI4Lj8LtcbuRucJgLYAIhAKmVUSUFTDHTMM/6su0C3COPPp9Na1/J8Px7bbAyHCbS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7n8CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCshAAlM2jXJJXHn/tmwHNYQYGeKGEcUT17BujAIpC4zmCHaYPXZyw\r\nvwPJH3jbpbyfPec9ABNSvwGMGoIBgB9Ldhj0zZMzyN1p27t3ajbA5dKYPDBf\r\n64MkEMrf+2dUK+mwe9wBUMZXgMydej/1q9rxWGTQjFpY6RKCKB0W91yPaIQH\r\nK2FkwM/foo4QWrLpaQut2MnM8CI9ZMnTZS0alqCkrykrSSpPQ7t4Catsqd1u\r\ndCgF38AaMLpUXJbpnELUGw7SFwZTAMMZOol9BYu96ut8//NwmTPFTyHryNRX\r\n0ycYgNiwAB0JpV5PzPcigyHz2oLEiaLkJZAuDklDhYBYbw8lF8w64fUhJ2BL\r\noh7zQ8RuLoNHglnnOqm5FE5B3Zb9pMfsQq/vuF6XsVOe4gQxRgIFanL68q/v\r\n7+EKB+8u9wlCrGqdl6UAVoFMCgHA8NReOCbhK1N3dThlYXP1423PFSFBw7Ss\r\n+R0pXletEg92NJxsC4yaBhaKLw24lnSBzcO2AOHtxoJa6luT0zkfux6zdtLH\r\nyNhUrfuzwv5nKTwkalF+oPtXSXc5YnLI+ZZX32oN3zx5Cc+Kuwq9qPVwk4y1\r\ncl2hSvgcVjccuaIpTUXfeJXQwV47bw5F30xxSQawVAI1ODHj+NYzhDWP8yph\r\nfvi6Q9PnxpZqn+6G/bPNHxf+k+MZzjnXBOM=\r\n=CzgA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"fiad","email":"hello@fiad.one"},"directories":{},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-twig_2.1.1_1659797250347_0.8398185280333745"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-03T13:35:53.722Z","1.0.0":"2022-01-03T13:35:53.924Z","modified":"2022-08-19T09:12:14.448Z","1.1.0":"2022-01-03T18:00:42.193Z","1.1.1":"2022-03-15T20:34:42.465Z","2.0.0":"2022-07-30T14:55:54.393Z","2.1.0":"2022-08-06T14:23:00.533Z","2.1.1":"2022-08-06T14:47:30.541Z"},"maintainers":[{"name":"fiad","email":"hello@fiad.one"}],"description":"[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).","homepage":"https://github.com/fiadone/vite-plugin-twig#readme","keywords":["vite-plugin","twig"],"repository":{"type":"git","url":"git+https://github.com/fiadone/vite-plugin-twig.git"},"author":{"name":"Andrea \"Fiad\" Fiadone"},"bugs":{"url":"https://github.com/fiadone/vite-plugin-twig/issues"},"license":"MIT","readme":"# vite-plugin-twig\n\n[Vite](https://github.com/vitejs/vite) plugin for [Twig](https://github.com/twigjs/twig.js/).\n\n---\n\n## ⚠️ Notice\nThis documentation refers to the version *2.x* of the plugin. Take a look [here](./README-v1.md) for older releases or check out the [migration guide](./MIGRATION.md).\n\n\n## Installation\n```\nnpm i -D vite-plugin-twig\n```\n\n\n## Usage\n\n```js\n/* vite.config.js */\nimport { defineConfig } from 'vite'\nimport twig from 'vite-plugin-twig'\n\nexport default defineConfig({\n  // ...\n  plugins: [\n    twig({ /* ...options */ })\n  ]\n})\n```\n\n### Options\nThe plugin can be configured both directly with the options parameter shown above or via the dedicated *twig.config.(js|ts)* file, like following:\n\n```js\n/* twig.config.js */\nimport { defineConfig } from 'vite-plugin-twig'\n\nexport default defineConfig({\n  // ...\n})\n```\n\n> ℹ️ *defineConfig* is a bypass function with type hints, which means you can also omit it if you don't need the autocompletion/typecheck.\n\nHere below the list of the supported options.\n\n#### `cache`\n__type:__ `boolean`\n\n__default:__ `false`\n\nIf *true*, it enables internal *Twig*'s template caching.\n\n#### `extensions`\n__type:__ `{ filters: TwigExtensions, functions: TwigExtensions }`\n\n__default:__ `undefined`\n\nA collection of custom filters and functions to extend *Twig*. Look at [*twig.js* documentation](https://github.com/twigjs/twig.js/wiki/Extending-twig.js) to learn more.\n\n#### `fileFilter`\n__type:__ `(filename: string) => boolean`\n\n__default:__ `undefined`\n\nA custom filter to determine if the current transforming *.html* file should be processed/ignored or not (useful for improving compatibility with other plugins).\n\nExample:\n```js\n/* twig.config.js */\nimport { defineConfig } from 'vite-plugin-twig'\n\nexport default defineConfig({\n  // ...\n  fileFilter: filename => filename.endsWith('.twig.html')\n})\n```\n\n#### `fragmentFilter`\n__type:__ `TwigFragmentFilter`\n\n__default:__ `undefined`\n\nA custom filter to determine if the current matched fragment should be processed/ignored or not (useful for improving compatibility with other plugins).\n\nExample:\n```js\n/* twig.config.js */\nimport { defineConfig } from 'vite-plugin-twig'\n\nexport default defineConfig({\n  // ...\n  fragmentFilter: (fragment, template, data) => {\n    return fragment.indexOf('data-engine=\"twig\"') > -1\n    // or  template.endsWith('.twig')\n    // or  data.engine === 'twig'\n  }\n})\n```\n\n#### `globals`\n__type:__ `{ [key: string]: any }`\n\n__default:__ `undefined`\n\nThe global variables to be injected in each template.\n\n#### `settings`\n__type:__ `{ views: any, 'twig options': any }`\n\n__default:__ `undefined`\n\nThe *Twig* settings. Please refer to *twig.js* [documentation](https://github.com/twigjs/twig.js/wiki/) and [types](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/twig/index.d.ts) to learn more.\n\n\n### Templates\nThe *.html* files located by default in the *Vite* project root are not intented to be replaced directly by the *.twig* ones since the normal page files resolution/linking on the *Vite*'s dev server is wanted to be preserved along with the build logic. However, those files are enabled to contain special *script* tags which will be treated as placeholders for contents you want to delegate to *Twig*.\n\nMore in details, a *.html* file could look like this:\n\n```html\n<!-- index.html -->\n<script type=\"application/json\" data-template=\"path/to/template.twig\">\n  {\n    \"foo\": \"bar\"\n  }\n</script>\n```\n\nwhere the `data-template` attribute defines the path (relative to the *cwd*) of the *.twig* file to be rendered in place of the *script* tag, whose content (optional) represents instead a *JSON* definition of the local context to be injected in the template (possibly merged with the *globals* provided via plugin options).\n\nTake a look [here](./playground/index.html) for a clearer example.\n\n> ℹ️ The *application/json* type is not mandatory, but it is recommended for syntax highlighting and linting purposes.\n\nThe plugin also supports a promiscuous templates handling, allowing you:\n- to have *.html* files with both standard and *Twig* based code\n- to render (multiple) *Twig* fragments within a standard *.html* page\n\nThis could be useful, for instance, when you want to use *Twig* for new implementations without having to refactor an existing code base.\n\nWith that in mind, a *.html* file could look as follows:\n\n```html\n<html>\n  <body>\n\n    <!-- existing contents -->\n\n    <script type=\"application/json\" data-template=\"path/to/fragment-a.twig\">\n      {\n        \"foo\": \"bar\"\n      }\n    </script>\n\n    <!-- existing contents -->\n\n    <script type=\"application/json\" data-template=\"path/to/fragment-b.twig\"></script>\n\n    <!-- existing contents -->\n    \n  </body>\n</html>\n```\n\nTake a look [here](./playground/fragments.html) for a clearer example.\n","readmeFilename":"README.md"}