Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>| <!DOCTYPE html> | |
| <!--Source: http://danzel.github.io/Leaflet.utfgrid/example/map.html//--> | |
| <html> | |
| <head> | |
| <script src="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.js"></script> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.1/leaflet.css" /> | |
| <script src="http://danzel.github.io/Leaflet.utfgrid/src/leaflet.utfgrid.js"></script> | |
| <link rel="stylesheet" href="styles.css" /> | |
| </head> | |
| <body> |
| <snippet> | |
| <content><![CDATA[ | |
| define([ | |
| 'dijit/_TemplatedMixin', | |
| 'dijit/_WidgetBase', | |
| 'dojo/_base/declare', | |
| ${2: | |
| 'dojo/i18n!./$1/nls/resources',} | |
| 'dojo/text!./$1/templates/$1.html'${5:, |
| <snippet> | |
| <content><![CDATA[ | |
| define([ | |
| 'dijit/_WidgetBase', | |
| 'dojo/_base/declare' | |
| ], function( | |
| _WidgetBase, | |
| declare | |
| ) { |
| <snippet> | |
| <content><![CDATA[ | |
| define([ | |
| ${1:'dojo/_base/declare'} | |
| ], function( | |
| ${2:declare} | |
| ) { | |
| return declare([$3], { | |
| $4 | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head>...</head> | |
| <body> | |
| <!-- Load Esri lib --> | |
| <link rel="stylesheet" href="//js.arcgis.com/4.0/esri/css/main.css"> | |
| <script src="//js.arcgis.com/4.0/"></script> | |
| <!-- Load our AMD app --> | |
| <script type="text/javascript"> | |
| // Wrap our app startup in AMD module |
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays