TABLE OF CONTENTS


Yass/Pages [ Packages ]

[ Top ] [ Packages ]

FUNCTION

 Provide code to create pages from Markdown files

SOURCE

package Pages is

Pages/GenerateSiteException [ Exceptions ]

[ Top ] [ Pages ] [ Exceptions ]

FUNCTION

 Raised when generating site was interrupted

SOURCE

   GenerateSiteException: exception;

Pages/CopyFile [ Subprograms ]

[ Top ] [ Pages ] [ Subprograms ]

FUNCTION

 Copy file with full path FileName to proper location in site output
 directory with full path Directory

SOURCE

   procedure CopyFile(FileName, Directory: String);

PARAMETERS

 FileName  - Full path to the file which will be copied
 Directory - Full path to the directory where file will be added

Pages/CreateEmptyFile [ Subprograms ]

[ Top ] [ Pages ] [ Subprograms ]

FUNCTION

 Create empty markdown file with default tags and with full path FileName

SOURCE

   procedure CreateEmptyFile(FileName: String);

PARAMETERS

 FileName - Full path to the Markdown file which will be created

Pages/CreatePage [ Subprograms ]

[ Top ] [ Pages ] [ Subprograms ]

FUNCTION

 Create page from file with full path FileName in directory with full
 path Directory

SOURCE

   procedure CreatePage(FileName, Directory: String);

PARAMETERS

 FileName  - Full path to the Markdown file which will be processed
 Directory - Full path to the directory where newly create HTML file will
             be added

Pages/GetLayoutName [ Subprograms ]

[ Top ] [ Pages ] [ Subprograms ]

FUNCTION

 Get name of layout used in the page with full path FileName

SOURCE

   function GetLayoutName(FileName: String) return String;

PARAMETERS

 FileName - Full path to the file which name layout will be check

RESULT

 Name of the layout used by the file