Skip to main content
Module

x/lume/core.ts>Searcher

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class Searcher
Re-export
import { Searcher } from "https://deno.land/x/lume@v1.17.5/core.ts";

Search helper

Constructors

new
Searcher(options: Options)

Methods

data(path?): Data | undefined

Return the data in the scope of a path (file or folder)

Clear the cache (used after a change in watch mode)

nextPage(
url: string,
query?: string,
sort?: string,
): Data | undefined

Return the next page of a search

pages(
query?: string,
sort?: string,
limit?: number,
): Data[]

Search pages

previousPage(
url: string,
query?: string,
sort?: string,
): Data | undefined

Return the previous page of a search

values<T = unknown>(key: string, query?: string): T[]

Returns all values from the same key of a search