fix: should not call the os.time function more than once.
add: the layout template feature has been added.