Sha256: 9ddb8e79cf83e720e2a8bf4bfedcb7de7f13175031ae840eba19be7143b9eed4

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 Bytes

Contents

click = <<-eos
<button @click="onClick()">click</button>
eos

insert_into_file "#{PARTS_PATH}/#{name}.vue",
click, after: "<p>{{ message }}</p>\n"

insert_into_file "#{PARTS_PATH}/#{name}.vue",
"      alert('click');\n", after: "console.log(\"clicked\")\n"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vueonrails-1.0.0.beta5 lib/generators/options/click.rb
vueonrails-1.0.0.beta3 lib/generators/options/click.rb
vueonrails-1.0.0.beta2 lib/generators/options/click.rb
vueonrails-1.0.0.beta1 lib/generators/options/click.rb
vueonrails-0.3.0 lib/generators/options/click.rb
vueonrails-0.2.0 lib/generators/options/click.rb