{"id":13791148,"url":"https://github.com/GuiDevloper/nullstack-polyable","last_synced_at":"2025-05-12T09:34:02.480Z","repository":{"id":112877286,"uuid":"351892643","full_name":"GuiDevloper/nullstack-polyable","owner":"GuiDevloper","description":":earth_americas: Making Nullstack framework able to read any template vocable you type","archived":false,"fork":false,"pushed_at":"2023-08-21T05:49:55.000Z","size":52,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T11:44:40.187Z","etag":null,"topics":["element","nullstack","plugin"],"latest_commit_sha":null,"homepage":"","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/GuiDevloper.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":"2021-03-26T19:35:57.000Z","updated_at":"2024-04-02T21:58:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"493afa0a-35c2-4a3f-beaf-f48e235e4905","html_url":"https://github.com/GuiDevloper/nullstack-polyable","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/GuiDevloper%2Fnullstack-polyable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-polyable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-polyable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-polyable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuiDevloper","download_url":"https://codeload.github.com/GuiDevloper/nullstack-polyable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253709524,"owners_count":21951171,"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":["element","nullstack","plugin"],"created_at":"2024-08-03T22:00:56.473Z","updated_at":"2025-05-12T09:34:02.132Z","avatar_url":"https://github.com/GuiDevloper.png","language":"JavaScript","readme":"# Nullstack Polyable\n\nMaking Nullstack framework able to read any template vocable you type\n\n## Installation\n\nRun this command on your Nullstack project:\n\n```sh\nnpm install nullstack-polyable -D\n```\n\nor, using Yarn:\n\n```sh\nyarn add nullstack-polyable -D\n```\n\nThen import it in your **client.js**/**server.js** files (as shown here in [**tests/index.js**](./tests/client.js)):\n\n\u003e Showing usage changing element types and attributes to pt-BR\n\n```js\nimport polyable from 'nullstack-polyable';\n\nNullstack.use(polyable({\n  types: {\n    button: 'botão',\n    input: 'entrada'\n  },\n  attributes: {\n    onclick: 'aoclicar',\n    oninput: 'aoteclar'\n  }\n}));\n```\n\n## Examples\n\n\u003e Everything can be seen being used on tests folder\n\nAfter the configuration, the use become this:\n\n```jsx\nexibe({ ação }) {\n  // it will show the attribute from the element\n  console.log(ação);\n}\n\nrenderiza() {\n  const { exibe } = this;\n  return (\n    \u003c\u003e\n      \u003cbotão aoclicar={exibe} ação=\"clicado!\"\u003e\n        Clique aqui\n      \u003c/botão\u003e\n      \u003centrada aoteclar={exibe} ação=\"digitado!\" /\u003e\n    \u003c/\u003e\n  )\n}\n\n// just to see where it goes,\n// using pt-BR in lifecycle hooks and the render function\nprepare = this.prepara;\nconsole = this.exibe;\nrender = this.renderiza;\n```","funding_links":[],"categories":["Components \u0026 Libraries"],"sub_categories":["Node/Element Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGuiDevloper%2Fnullstack-polyable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGuiDevloper%2Fnullstack-polyable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGuiDevloper%2Fnullstack-polyable/lists"}