Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guidevloper/nullstack-vueable

:green_heart: Making Nullstack framework able to read Vue basic template syntax
https://github.com/guidevloper/nullstack-vueable

element nullstack plugin vuejs

Last synced: 9 days ago
JSON representation

:green_heart: Making Nullstack framework able to read Vue basic template syntax

Awesome Lists containing this project

README

        

# Nullstack Vueable

Making Nullstack framework able to read Vue basic template syntax

## Installation

Run this command on your Nullstack project:

```sh
npm install nullstack-vueable -D
```

or, using Yarn:

```sh
yarn add nullstack-vueable -D
```

Then import it in your **index.js** file (as shown here in **tests/index.js**):

Then import it in your **client.js**/**server.js** files (as shown here in [**tests/client.js**](./tests/client.js)):

```js
import vueable from 'nullstack-vueable';

Nullstack.use(vueable);
```

## Examples

> All of this can be seen being used on tests folder

### `v-for`

```jsx
array = [25, 1, {data: {data2: 10}}, {data: {data2: 20}}];
renderVFor() {
return (
<>

item.data.data2


Double array

>
)
}
```

### `v-if`

```jsx
showTitle = true;
renderVif() {
return (
<>


Element to be hidden



Toggle title

>
)
}
```

### `v-html`

```jsx
boldTitle() {
return `${this.title}`;
}
renderVhtml() {
return (


)
}
```

### `v-model`

```jsx
title = 'Nullstack';
renderVModel() {
return (

)
}
```

### Use of it all in the [`render`](https://nullstack.app/renderable-components) function

```jsx
render() {
return (
<>




>
)
}
```