{"id":19526567,"url":"https://github.com/umakantp/jsmart-loader","last_synced_at":"2025-04-26T10:31:19.093Z","repository":{"id":26616377,"uuid":"108998131","full_name":"umakantp/jsmart-loader","owner":"umakantp","description":"jSmart loader to load Smarty files for webpack","archived":false,"fork":false,"pushed_at":"2023-03-14T16:02:41.000Z","size":717,"stargazers_count":7,"open_issues_count":8,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T14:45:34.548Z","etag":null,"topics":["jsmart-loader","jsmart-webpack-loader","smarty","smarty-webpack","webpack","webpack-loader"],"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/umakantp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-31T13:17:33.000Z","updated_at":"2023-03-01T15:31:22.000Z","dependencies_parsed_at":"2024-11-11T01:10:51.083Z","dependency_job_id":null,"html_url":"https://github.com/umakantp/jsmart-loader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umakantp%2Fjsmart-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umakantp%2Fjsmart-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umakantp%2Fjsmart-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umakantp%2Fjsmart-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umakantp","download_url":"https://codeload.github.com/umakantp/jsmart-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250972771,"owners_count":21516423,"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":["jsmart-loader","jsmart-webpack-loader","smarty","smarty-webpack","webpack","webpack-loader"],"created_at":"2024-11-11T01:10:44.687Z","updated_at":"2025-04-26T10:31:18.850Z","avatar_url":"https://github.com/umakantp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jSmart loader for webpack\njSmart loader lets you use [jSmart(Smarty template javascript engine)](https://github.com/umakantp/jsmart) and Webpack together, including auto-loading partials.\n\n[![Build Status](https://travis-ci.org/umakantp/jsmart-loader.png?branch=master)](https://travis-ci.org/umakantp/jsmart-loader)\n[![npm version](https://img.shields.io/npm/v/jsmart-loader.svg)](https://www.npmjs.com/package/jsmart-loader)\n[![David](https://img.shields.io/david/umakantp/jsmart-loader.svg)](https://www.npmjs.com/package/jsmart-loader)\n[![David](https://img.shields.io/david/dev/umakantp/jsmart-loader.svg)](https://www.npmjs.com/package/jsmart-loader)\n[![npm](https://img.shields.io/npm/l/jsmart-loader.svg)](https://github.com/umakantp/jsmart-loader/blob/master/LICENSE)\n\n## Install\n\n```sh\nnpm install jsmart-loader --save-dev\n```\n\n## Usage\n\n```\n#### webpack 2.x to webpack 5.x\n```javascript\nmodule: {\n    rules: [ {\n        test: /\\.tpl|\\.smarty$/,\n        loader: 'jsmart-loader'\n    } ]\n}\n```\n#### webpack 1.x\n```javascript\nmodule: {\n    loaders: [ {\n        test: /\\.tpl|\\.smarty$/,\n        loader: 'jsmart'\n    } ]\n}\n```\n\n```javascript\nvar template = require('./template.smarty');\nvar html = template({ name: 'world' });\n```\n\nIf you want to set custom delimiters then you can pass on delimiters one (left or right) or both using options. You can also pass on auto delimiters detection on or off using options.\n\n```javascript\nmodule: {\n  rules: [ {\n    test: /template\\.smarty$/,\n    loader: 'jsmart-loader',\n    options: {\n      leftDelim: '{{',\n      rightDelim: '}}',\n      autoLiteral: false\n    },\n  } ]\n}\n```\n\n[Documentation: Using loaders](https://webpack.js.org/concepts/loaders/#using-loaders).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumakantp%2Fjsmart-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumakantp%2Fjsmart-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumakantp%2Fjsmart-loader/lists"}