• Stars
    star
    188
  • Rank 205,563 (Top 5 %)
  • Language
    Clojure
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Configure Vue.js components using ClojureScript, manage global state using Atoms.

glue

Downloads Dependencies Status Build License Clojars Project

Trying to glue cljs and vue together.

Overview

So far main idea is just to configure components via clojurescript.

Demo

Check out the glue cljs demo app for the usage example.

Example

    <template id="sample-template">
        <div>
            <span>{{ label }} | </span>
            <span>{{ counterLabel }}</span>
            <button @click="clickMe">Click</button>
            <hr/>
        </div>
    </template>

    <div id="app">
        <sample-template label="sample button"></sample-template>
    </div>
(ns app.core
  (:refer-clojure :exclude [atom])
  (:require [glue.api :as g :refer [atom]]))

(g/defcomponent
  :sample-component
  {:template "#sample-template"
   :props [:label]
   :state (fn [] {:counter (atom 0)})
   :computed {:counter-label (fn [this state]
                               (str @(:counter state) " clicks"))}
   :methods {:click-me (fn [this state _]
                         (println "Click happened on" (g/prop this :label))
                         (swap! (:counter state) inc))}})

(g/vue {:el "#app"})

License

Copyright © 2017-2019 Max Gonzih gonzih @ gmail.com

Distributed under the MIT license.

More Repositories

1

cljs-electron

ClojureScript + Electron + Figwheel + Reagent = ❤❤❤
Clojure
596
star
2

docker-csgo-server

Dockerfile for the CSGO server
Dockerfile
134
star
3

crabler

Web Crawler for Crabs
Rust
92
star
4

log-replay

Replay nginx/haproxy/solr logs for the sake of stress testing
Go
68
star
5

crabquery

JQuery for Crabs
Rust
52
star
6

docker-tf2-server

Dockerfile for the Team Fortress 2 server
Shell
36
star
7

feeds2imap.clj

Pull RSS/Atom feeds to your IMAP folders with Clojure on JVM.
Clojure
31
star
8

vim-keymap

vim keymap
24
star
9

zigra

Command line toolkit for Zig
Zig
24
star
10

glue-demo

Glue.cljs demo app
Clojure
14
star
11

wow-addon-manager

Simple go program that synchronizes local World of Warcraft addons from curseforge. Works on Windows, Linux and Mac!
Go
10
star
12

reagent-native

Attempt to use reagent+clojurescript with react-native for android
Objective-C
10
star
13

.fish

my fish shell configuration files
Shell
8
star
14

pomodoro-gnome-shell

Pomodoro extension for gnome-shell
JavaScript
7
star
15

cljs-backtrick-editor

Add clojurescript to every page Quake style.
JavaScript
7
star
16

markup5ever_arcdom

Thread safe version of RcDom
Rust
6
star
17

hayoo-cli

Hayoo CLI
Haskell
6
star
18

hn-tray.clj

HN Tray
Clojure
6
star
19

feeds2imap-go

Fetch Atom/RSS feeds and store posts in your IMAP folder
Go
6
star
20

dotfiles

outdated dotfiles
Shell
6
star
21

crablike

Roguelike in Rust 🦀
Rust
6
star
22

shelr-hubot

Hubot for #shelr at irc.freenode.net
CoffeeScript
4
star
23

feeds2imap.rb

Pull rss/atom feeds to your imap foldes with ruby.
Ruby
4
star
24

flapping-in-go

Flappy bird in golang
Go
4
star
25

.vim

vim dotfiles
Vim Script
3
star
26

tmuxman

Foreman in tmux. Create tmux session using your Procfile.
Go
3
star
27

cats-nats

Cats Effect wrapper for Nats
Scala
3
star
28

apod-nasa-scraper-rs

Scrape Astronomy Picture of the Day website
Rust
3
star
29

clj-arduino-rc-toy

Clojure and Arduino based RC toy
Clojure
3
star
30

ClojureArduinoGmailNotificator

Gmail notifications with Android and Clojure
Clojure
3
star
31

game-of-life-ruby

Ruby
3
star
32

.mutt

Mutt configuration files
Python
3
star
33

tft-meta-analysis

Match history analysis that provides insights into top team compositions, champion choices and best in slot items for each champion
Jupyter Notebook
3
star
34

poe-api-experiment

Go
2
star
35

awesome

My awesome config
Lua
2
star
36

sin_cmd

Sinatra app that runs shell commands using web ui.
Ruby
2
star
37

.mc

Midnight Commander files
2
star
38

tbh-scaffolds

Scaffolds templates based on Twitter Bootstrap framework
Ruby
2
star
39

HNApi

Hacker News front page parser and server
Haskell
2
star
40

cljs-http-reagent-learning-template

Small template for CLJS workshop
Shell
2
star
41

autostereograms-rs

Rust + Wasm + Stereograms
Rust
2
star
42

onnx-worker.zig

Zig
2
star
43

poe-status.com

Scanner for path of exile server status that uses distributed nmap and ping based scanners and centralized twirp based storage and ui server.
Go
2
star
44

keepass-httpd

HTTP api for searching keepass files
Go
2
star
45

weechat-in-a-docker

Docker image to run your weechat instance
1
star
46

keys

my public ssh keys
1
star
47

markov-golang

Markov chain on TED talks
Go
1
star
48

nixos-configuration

My nix configuration for all my laptops, personal servers and workstations
Nix
1
star
49

nix-home

home-manager config
Nix
1
star
50

wasm-components-go

Vue.js inspired components playground for Go on WebAssembly
Go
1
star
51

some-simple-graph-based-clojure-web-clawler

Yes, just some random fun clojure project.
Clojure
1
star
52

nexus-table-dashboard-react-native

Just playing around with react native
JavaScript
1
star
53

.xmonad

xmonad dotfiles
Haskell
1
star
54

nixos-x200-configuration

Nix
1
star
55

marumego

Clone of marume.herokuapp.com in golang (just learning wtf is a golang)
Go
1
star
56

blog.gonzih.me

My small blog.
HTML
1
star
57

turmite.cljs

Turmites implemented in ClojureScript. Demo is on (gonzih.me)
Clojure
1
star
58

RedPandaClojure

IRC bot written in Clojure with Realtime Web UI
Clojure
1
star
59

images

1
star
60

tbh-scaffolds-demo

tbh-scaffolds demo app
Ruby
1
star
61

HNCli.hs

Simple HN api client in haskell using Aeson.
Haskell
1
star
62

lubovsoltan-gallery-website

Svelte
1
star
63

Hide-Google-Plus-Notifications-for-Chrome

Hide Google Plus Notifications for Chrome
JavaScript
1
star
64

simpleton

Go
1
star
65

composition-generator

Having fun with clojure
Clojure
1
star
66

refl.me-server

Small http server to be used with relf.me
Rust
1
star
67

flutter-nixos-additions

Extra crap i throw in every flutter project i create for simpler workflow on nixos
Nix
1
star
68

rust-wasm-components

Experimenting with an old idea in an new language
Rust
1
star
69

hack-env

Coding enviroment made portable thanks to docker
Shell
1
star
70

jq-docker

Docker container with preinstalled jq, can be used to install jq
Shell
1
star
71

arduino-projects

My Arduino Projects
C++
1
star
72

golang-webview-systemd

Go
1
star
73

Hide-Google-Plus-Notifications-for-Greasemonkey

Hide Google Plus Notifications for Greasemonkey
JavaScript
1
star
74

game-of-life-clojure

Convay's Game Of Life implemented in Clojure
Clojure
1
star
75

2d-simulation-bevy

Rust
1
star
76

wasm-langton-ant-rs

Playing around with WASM and Rust
Rust
1
star
77

sinatra_based_pdf_generetion

very simple app that generates pdf using wkhtmltopdf
Ruby
1
star
78

feeds2imap_mobile

Attempt to build some feed reader using flutter.io and dart.
Dart
1
star
79

stableml-playground-test

Python
1
star
80

shelr-archlinux

PKGBUILD for shelr.tv client
1
star
81

mandelbrot-go

Mandlelbrot visualization in go using SDL2
Go
1
star
82

temperature-service

via shelling out
Go
1
star
83

weechat_notify_send_ruby

notify send in weechat on private messages and mentions
Ruby
1
star