////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
////


== isNotAvailable



=== Purpose


Renders its body if and only if a named plugin is _not_ installed in the current project. Note that it uses the 'plugin' namespace.


=== Examples


[,xml]
----
<plugin:isNotAvailable name="spring-security-core">
You don't have Spring Security installed!
</plugin:isNotAvailable>

<plugin:isNotAvailable name="resources" version="1.2">
  <%-- Do something unless version 1.2 of Resources plugin is installed --%>
</plugin:isNotAvailable>
----


=== Description


Sometimes you want to only display something in a view if a plugin is not installed, particularly if you're developing another plugin, and you can't know whether another plugin is installed or not. For example, your plugin may provide a tag cloud, and you want it to integrate with, but not require, the Taggable plugin. In that case, you can use this tag to provide default code or markup in your views, partial templates, etc. that is used if Taggable isn't installed.

Attributes

* `name` - the name of the plugin you're testing for.
* `version` (optional) - the version of the plugin that you're testing for. This doesn't support version ranges, so be careful using it.


