1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-06-17 00:07:55 +02:00

Moved html drivers outside of standard library

This commit is contained in:
Tim Voronov
2018-10-07 21:32:30 -04:00
parent 957490efec
commit 03d9f2e561
31 changed files with 40 additions and 42 deletions

View File

@ -2,10 +2,10 @@ package html
import (
"context"
"github.com/MontFerret/ferret/pkg/html"
"github.com/MontFerret/ferret/pkg/html/static"
"github.com/MontFerret/ferret/pkg/runtime/core"
"github.com/MontFerret/ferret/pkg/runtime/values"
"github.com/MontFerret/ferret/pkg/stdlib/html/driver"
"github.com/MontFerret/ferret/pkg/stdlib/html/driver/static"
)
/*
@ -27,7 +27,7 @@ func DocumentParse(ctx context.Context, args ...core.Value) (core.Value, error)
return values.None, err
}
drv, err := driver.FromContext(ctx, driver.Static)
drv, err := html.FromContext(ctx, html.Static)
if err != nil {
return values.None, err