Home News DOC Class DL Others Rice
Class  >  application  >  HtmlsDirectory
application class : HtmlsDirectory getter

Description

Returns a path of the directory for local Html file mapping.

Syntax

instance.HtmlsDirectory

Arguments

None.

Return value

ClassDescription
stringA path of the directory.

Sample code

1:

application app;

2:

string path = app.HtmlsDirectory;

Notes

The htmls subdirectory of Cooker's execution directory is mapped to the domain "htmls.cooker".

You can read local Html files under the htmls directory using the https or http protocol.

https://htmls.cooker/...

http://htmls.cooker/...

In mapped local html files, All cross origin resource access is allowed, including accesses that are subject to Cross-Origin Resource Sharing(CORS) check.

Links for reference

None.

Copyright © Rice All rights reserved.