<spanclass="n">description</span><spanclass="o">=</span><spanclass="s">'This plugin extends the suggestions with the word "example"'</span>
<spanclass="n">default_on</span><spanclass="o">=</span><spanclass="k">False</span><spanclass="c"># disable by default</span>
<spanclass="n">js_dependencies</span><spanclass="o">=</span><spanclass="nb">tuple</span><spanclass="p">()</span><spanclass="c"># optional, list of static js files</span>
<spanclass="n">css_dependencies</span><spanclass="o">=</span><spanclass="nb">tuple</span><spanclass="p">()</span><spanclass="c"># optional, list of static css files</span>
<h2>Plugin entry points<aclass="headerlink"href="#plugin-entry-points"title="Permalink to this headline">¶</a></h2>
<p>Entry points (hooks) define when a plugin runs. Right now only three hooks are implemented. So feel free to implement a hook if it fits the behaviour of your plugin.</p>
<divclass="section"id="pre-search-hook">
<h3>Pre search hook<aclass="headerlink"href="#pre-search-hook"title="Permalink to this headline">¶</a></h3>
<p>Runs BEFORE the search request. Function to implement: <codeclass="docutils literal"><spanclass="pre">pre_search</span></code></p>
</div>
<divclass="section"id="post-search-hook">
<h3>Post search hook<aclass="headerlink"href="#post-search-hook"title="Permalink to this headline">¶</a></h3>
<p>Runs AFTER the search request. Function to implement: <codeclass="docutils literal"><spanclass="pre">post_search</span></code></p>
</div>
<divclass="section"id="result-hook">
<h3>Result hook<aclass="headerlink"href="#result-hook"title="Permalink to this headline">¶</a></h3>
<p>Runs when a new result is added to the result list. Function to implement: <codeclass="docutils literal"><spanclass="pre">on_result</span></code></p>