### ----------------------------------------------------
### -- Collection-Plugin-Development
### -- Licenses: Artistic-2.0
### -- Authors: Richard Hainsworth, aka finanalyst
### -- File: lib/plugins/html/filterlines/filter-template.raku
### ----------------------------------------------------
#!/usr/bin/env perl6
%(
    filterlines => sub (%prm, %tml) {
        "\n" ~ '<input id="' ~ ( %prm<id> or 'RakuSearchLine' )
                ~ '" type="text" placeholder="'
                ~ ( %prm<placeholder> or 'Search...' ) ~ '">'
            ~ "\n" ~ '<div id="_search_selector" style="display: none;">'
            ~ (%prm<selector> // '#RakuSearchContent *') ~ '</div>'
            ~ "\n" ~ '<div id="RakuSearchContent">'
            ~ "\n" ~ %prm<contents>
            ~ "\n" ~ '</div>'
    },
)


