Commit caca0049 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

Update README.md

parent ccdc4a7c
### SSO: Content Management Guide # SSO: Content Management Guide
#### Separating password protected and public html pages ### Separating password protected and public html pages
There are 2 options: There are 2 options:
1. Create 2 different pages 1. Create 2 different pages
- This one seems simpler since you just need to copy-paste and edit the existing html.
- However, having redundant pages often leads to inconsistency and other problems.
2. Use view engine to enable having if-else conditions on 1 page 2. Use view engine to enable having if-else conditions on 1 page
- This is the option I take for this project.
- You need to get familiar with the view engine. I use pug (https://pugjs.org/api/getting-started.html) on this project.
- You can convert your existing html page to pug using this website: https://html-to-pug.com/. I have tried it to convert index.html to index.pug and it works.
#### Preventing user to directly access an html ### Preventing user to directly access an html
\ No newline at end of file to be continued
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment