Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b15e318c20
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (29 sloc) 1.511 kb
<?xml version="1.0"?>
<action-recipes>
<action id="com.onecrayon.spice.helloWorld" category="category.id">
<!-- Class and title are required by all Espresso menu actions -->
<class>Spice</class>
<title>Hello Spicy World</title>
<!-- Contents of setup are what's available to the Spice -->
<setup>
<!-- `script` is the only required attribute of `setup` and should be the name of your Javascript file that's in Support/Scripts ('.js' is optional) -->
<script>hello_world</script>
<!-- undo_name is a standard argument for custom actions; only useful if you are using text recipes -->
<undo_name>Hello World!</undo_name>
<!-- Optional; sets in which syntax contexts Espresso will make the action active -->
<syntax-context>html, html *, css, css *, js, js *</syntax-context>
<!-- `arguments` allows you to pass arbitrary arguments to an action -->
<!-- Uses plist formatting for arrays -->
<arguments>
<array>
<string>Hello World! Love, ${1:Your Pal Spice}</string>
</array>
</arguments>
<!-- The following are optional tags that you'll almost never need to use -->
<!-- `function` allows you to specify the name of the function that Spice should call in your script -->
<function>main</function>
<!-- If `no-frills` is set to 1, then only your script will be executed (without any of Spice's helper functions); refer to the documentation for more info -->
<no-frills>0</no-frills>
</setup>
</action>
</action-recipes>
Jump to Line
Something went wrong with that request. Please try again.