Skip to content
IntelliJ jQuery templates
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
settings
src
.gitignore
README.md
build.bat
build.sh
extract.bat
extract.sh
settings.jar

README.md

idea-jquery-templates

jQuery live templates for IntelliJ IDEA and Webstorm. All templates are ECMAScript 5 compliant.

Installation

Download settings.jar and import it using File->Import Settings.

Available templates

List with available templates abbreviations:

  • jqapp - Generates a jQuery app module
  • jqpluginp - Creates a prototypical jQuery plugin

jqapp

Entry point for your jQuery app. You can add appwide configurations and methods.

jqpluginp

Creates a prototypical jQuery plugin with a controller. The controller will be exposed in data.
If you need to call a method you can either get the controller or use data.

Example:

var $example = $('#example').example();
var exampleCtrl = $example.data('example');

exampleCtrl.demo(1); // Calls method on the controller
$example.data('demo', 1); // Calls the same method on the controller

Importing settings from a JAR archive

  • Choose File. | Import Settings from the main menu.
  • In the Import File Location dialog box that opens select the desired archive.
  • In the Select Components to Import dialog box that opens specify the settings to be imported, and click OK. By default, all settings are selected.
You can’t perform that action at this time.