{"id":13791156,"url":"https://github.com/GuiDevloper/nullstack-vueable","last_synced_at":"2025-05-12T09:34:10.241Z","repository":{"id":65466494,"uuid":"351449071","full_name":"GuiDevloper/nullstack-vueable","owner":"GuiDevloper","description":":green_heart: Making Nullstack framework able to read Vue basic template syntax","archived":false,"fork":false,"pushed_at":"2023-09-01T18:57:18.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-02T15:29:15.073Z","etag":null,"topics":["element","nullstack","plugin","vuejs"],"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-25T13:37:18.000Z","updated_at":"2022-05-02T04:28:08.000Z","dependencies_parsed_at":"2024-08-03T22:04:32.304Z","dependency_job_id":"336799d5-32a7-4a88-abd8-a4b86affcaff","html_url":"https://github.com/GuiDevloper/nullstack-vueable","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"31eba069a2f3aa004f343bc47e485d626093405b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-vueable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-vueable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-vueable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuiDevloper%2Fnullstack-vueable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuiDevloper","download_url":"https://codeload.github.com/GuiDevloper/nullstack-vueable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253534801,"owners_count":21923545,"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","vuejs"],"created_at":"2024-08-03T22:00:56.674Z","updated_at":"2025-05-12T09:34:09.890Z","avatar_url":"https://github.com/GuiDevloper.png","language":"JavaScript","readme":"# Nullstack Vueable\n\nMaking Nullstack framework able to read Vue basic template syntax\n\n## Installation\n\nRun this command on your Nullstack project:\n\n```sh\nnpm install nullstack-vueable -D\n```\n\nor, using Yarn:\n\n```sh\nyarn add nullstack-vueable -D\n```\n\nThen import it in your **index.js** file (as shown here in **tests/index.js**):\n\nThen import it in your **client.js**/**server.js** files (as shown here in [**tests/client.js**](./tests/client.js)):\n\n```js\nimport vueable from 'nullstack-vueable';\n\nNullstack.use(vueable);\n```\n\n## Examples\n\n\u003e All of this can be seen being used on tests folder\n\n### `v-for`\n\n```jsx\narray = [25, 1, {data: {data2: 10}}, {data: {data2: 20}}];\nrenderVFor() {\n  return (\n    \u003c\u003e\n      \u003cspan v-for={'item in ' + JSON.stringify(this.array)}\u003e\n        item.data.data2\n      \u003c/span\u003e\n      \u003cbutton onclick={{array: [...this.array, ...this.array]}}\u003e\n        Double array\n      \u003c/button\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n### `v-if`\n\n```jsx\nshowTitle = true;\nrenderVif() {\n  return (\n    \u003c\u003e\n      \u003ch1\n        v-if=\"showTitle\"\n        source={this}\n      \u003e\n        Element to be hidden\n      \u003c/h1\u003e\n      \u003cbutton\n        onclick={{showTitle: !this.showTitle}}\n      \u003e\n        Toggle title\n      \u003c/button\u003e\n    \u003c/\u003e\n  )\n}\n```\n\n### `v-html`\n\n```jsx\nboldTitle() {\n  return `\u003cb\u003e${this.title}\u003c/b\u003e`;\n}\nrenderVhtml() {\n  return (\n    \u003ch1\n      v-html=\"boldTitle\"\n      source={this}\n    \u003e\u003c/h1\u003e\n  )\n}\n```\n\n### `v-model`\n\n```jsx\ntitle = 'Nullstack';\nrenderVModel() {\n  return (\n    \u003cinput\n      type=\"text\"\n      v-model=\"title\"\n      source={this}\n    /\u003e\n  )\n}\n```\n\n### Use of it all in the [`render`](https://nullstack.app/renderable-components) function\n\n```jsx\nrender() {\n  return (\n    \u003c\u003e\n      \u003cVif/\u003e\n      \u003cVhtml/\u003e\n      \u003cVFor/\u003e\n      \u003cVModel/\u003e\n    \u003c/\u003e\n  )\n}\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-vueable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGuiDevloper%2Fnullstack-vueable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGuiDevloper%2Fnullstack-vueable/lists"}