"""
npx imba create my-app
cd my-app
npm install
"""
"2. Install pro-router-imba2 and run development server:"
"""
npm install pro-router-imba2 --save
npx pro-router init
npm run dev
"""
"3. Add "
<.bordered> ""
" component to your app (in "
<.bordered> "src/main.imba"
" file)."
"The simplest application would look like this:"
"""
imba{ '.'}mount { 'pro-router'}
"""
"A bit more complex example:"
"""
{ 'my-app'}
{ 'self'}
{ "pro-ref{ ' view'}{ '='}{ 'v'}"} { 'for'} v { 'in'} { 'R'}{ '.'}views { 'render menu'}
{ "pro-router"} { 'slot for current view'}
{ 'view-home'}
{ 'self'} 'Hello World!'
{ 'view-another-view'}
{ 'self'} 'This is another view.'
imba{ '.'}mount { 'my-app'}
"""
"4. Everything is already set."
tag imba-code < pre
prop file
css bgc:gray8 d:block
code bd:0 rd:0
&.file bgc:amber3 d:block
&.content c:gray3
file if file
tag c-el
css d:inline c:gray3
tag c-op < c-el
css c:white fw:bold
tag c-c < c-el
css c:blue3
tag c-com < c-el
css c:gray5
"# "
###
tag c-class < c-el
###
tag c-tag < c-el
"<"
<[c:blue4 d:inline]>
">"
tag c-tag-def < c-el
"tag "
<[c:green5 d:inline]>
tag view-usage
"List of components"
tag view-examples
"Examples:"
tag view-why-to-use-it
"Why?"
imba.mount if import.meta.env.MODE is 'development'