Ignore tabs when exporting static files

My tiddlywiki is configured with node.js under Windows. I used the following command to export into static files

call tiddlywiki tiddlywiki --render "[tag[export]]" "[encodeuricomponent[]addprefix[static/]addsuffix[.html]]" "text/plain" "$:/core/templates/static.tiddler.html" 

I used the following viewtemplate to generate tabs for a few sets of tiddlers. The basic idea is to use tiddler with tag $:/tag/tab/filter to filter of tiddlers and contents of tabs

  • field filter-tiddler for filter of tiddlers
  • field filter-tab for filter of tabs
\whitespace trim

\function first-tab() 
[subfilter<filter-tab>] +[first[]]
\end

<div class="clstabs">
<$list filter="[tag[$:/tag/tab/filter]]" variable="tab-type">
    <$set name="filter-tiddler" tiddler=<<tab-type>> field="filter-tiddler" > 
        <$set name="filter-tab" tiddler=<<tab-type>> field="filter-tab" > 
            <$set name="filter-state" tiddler=<<tab-type>> field="state" > 
                <$list filter="[subfilter<filter-tiddler>]" variable="ignore">
                    <$list filter="[subfilter<filter-tab>count[]] -[[0]]" variable="ignore">
                    <$macrocall $name="tabs"
                        tabsList=<<filter-tab>> />
                    </$list>
                </$list>
            </$set>
        </$set>
    </$set>
</$list>
</div>

This method is working good in the Browser. However, some tabs are used to generate interactive figures and cannot be exported into static html files.

Could I modify my viewtemplate to check whether it is in the Browser (e.g. $tw.browser in js)? If not, tabs will be ignored if a new field (e.g. static-ignore) is presented.

You can check whether $:/info/browswer is set to yes. I think that would work.

Thanks @Scott_Sauyet It works for me.