{"id":26447428,"url":"https://github.com/bitfertig/blade-compiler.nodejs","last_synced_at":"2025-03-18T13:57:11.424Z","repository":{"id":57100410,"uuid":"314385435","full_name":"Bitfertig/blade-compiler.nodejs","owner":"Bitfertig","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-20T00:12:35.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T20:41:32.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bitfertig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-19T22:31:40.000Z","updated_at":"2021-01-07T13:58:06.000Z","dependencies_parsed_at":"2022-08-20T17:30:57.319Z","dependency_job_id":null,"html_url":"https://github.com/Bitfertig/blade-compiler.nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fblade-compiler.nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fblade-compiler.nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fblade-compiler.nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitfertig%2Fblade-compiler.nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bitfertig","download_url":"https://codeload.github.com/Bitfertig/blade-compiler.nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236097,"owners_count":20420752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-18T13:57:10.790Z","updated_at":"2025-03-18T13:57:11.414Z","avatar_url":"https://github.com/Bitfertig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blade Compiler\n\nThis package compiles blade templates to HTML.\n\n## Installation\n\nVia NPM:\n```console\n$ npm install @bitfertig/blade-compiler.nodejs\n```\n\n## Usage\n\nRequire the package and compile a blade file:\n```js\nvar prop = { title: 'MyTitle' }; // Data\nvar bladeCompiler = require('@bitfertig/blade-compiler.nodejs');\nvar compiledHTML = bladeCompiler({ folder: './src', file: '/index' });\nconsole.log(compiledHTML);\n```\n\n./src/index.blade.html\n```html\n\u003chtml\u003e\n    \u003chead\u003e{{ prop.title }}\u003c/head\u003e\n    \u003cbody\u003e\n        @include('partials.header')\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\n./src/partials/header.blade.html\n```html\n\u003cheader\u003eHello World.\u003c/header\u003e\n```\n\n## Options\n\n| Name | Type | Default value | Description |\n|---|---|---|---|\n| encoding | string | utf8 | Blade templates encoding |\n| extends | boolean | true | Enable/disable compiling @extends directives |\n| folder | string | ./src | Path to the views directory |\n| file | string | /index | Path to the compiled blade template file |\n| extension | string | .blade.html | Blade file extension |\n\n\n\n\n\n## Author\nAurelian Hermand, www.bitfertig.de\n\nCloned from https://github.com/pbelyaev/laravel-blade-compiler\n\n### Some commands\n\n```bash\n# Publishing initial npm package\nnpm publish --access public\n# Publishing npm versions after changing version in package.json\nnpm publish\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfertig%2Fblade-compiler.nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfertig%2Fblade-compiler.nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfertig%2Fblade-compiler.nodejs/lists"}