Skip to content

webtools.tailwind #

fn new #

fn new(args TailWindArgs) !Tailwind

generate the html and open in browser

struct AddArgs #

@[params]
struct AddArgs {
pub:
	name    string = 'index'
	htmltxt string @[required]
}

struct TailWindArgs #

@[params]
struct TailWindArgs {
pub:
	name          string = 'test'
	path_build    string
	content_paths []string // list of sources of the tailwind content, where html with tailwind is
}

struct Tailwind #

struct Tailwind {
pub mut:
	name string
	path pathlib.Path
}

fn (Tailwind) add #

fn (mut tw Tailwind) add(args AddArgs) !

fn (Tailwind) compile #

fn (tw Tailwind) compile(source string, dest string) !

generate the html and open in browser