Skip to content

Commit

Permalink
Update 14.markmin
Browse files Browse the repository at this point in the history
Fixing a very minor typo in the variable name when used in the explanation
  • Loading branch information
dpetzel committed Mar 24, 2013
1 parent d5b7861 commit 40132eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/29-web2py-english/14.markmin
Expand Up @@ -82,7 +82,7 @@ def myfolder():
return dict(files=Expose('/path/to/myfolder'))
``:code

which you can render in a view with ``{{=fiels}}``. It will create an interface to view the files and folders, and navigate the tree structure. Images will have a preview.
which you can render in a view with ``{{=files}}``. It will create an interface to view the files and folders, and navigate the tree structure. Images will have a preview.

The path prefix "/path/to/myfolder" will be hidden to the visitors. For example a file called "/path/to/myfolder/a/b.txt" and replaced with "base/a/b.txt". The "base" prefix can be specified using the ``basename`` argument of the Expose function. Using the argument ``extensions`` can specify a list of file extensions to be listed, other files will be hidden. For example:

Expand Down

0 comments on commit 40132eb

Please sign in to comment.