o
    úxËbÜ  ã                   @   s^   d dl mZ d dlZd dlZd dlmZ d dlmZ e e	e 
e ¡ d¡ƒej¡Zdd„ ZdS )é    )ÚpathN)ÚMarkup)Úrender_templatezsub_pages.ymlc                 C   s*   t  |  ¡ ¡ |¡}dd„ | ¡ D ƒ}|S )Nc                 S   s   i | ]\}}|t t|ƒƒ“qS © )r   r   )Ú.0Ú	page_nameZ	page_filer   r   ú>C:\Users\insignal\homepage\insignal\config\config_sub_pages.pyÚ
<dictcomp>   s    z!get_sub_pages.<locals>.<dictcomp>)Úsub_pages_ymlÚgetÚupperÚitems)ÚcategoryZmenuZsub_page_itemsÚ	sub_pagesr   r   r   Úget_sub_pages
   s   r   )Úinsignal.configr   ZyamlÚpathlibÚjinja2r   Úflaskr   ÚloadÚopenÚPathÚget_config_pathÚLoaderr
   r   r   r   r   r   Ú<module>   s    