Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Development
TrinityJS - Minimalistic web framework
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MayoMayn" data-source="post: 426414" data-attributes="member: 71840"><p><strong># UPDATES</strong></p><p>I've coded a new plugin <a href="https://github.com/marcus-sa/trinity-dom" target="_blank">https://github.com/marcus-sa/trinity-dom</a></p><p>I got this idea off the already existing package for Scala.js <a href="http://www.lihaoyi.com/scalatags" target="_blank">http://www.lihaoyi.com/scalatags</a> plus it makes it more React like.</p><p></p><p>Before you would code it inline like this:</p><p><a href="https://pastebin.com/BCgQPFcE" target="_blank">https://pastebin.com/BCgQPFcE</a></p><p></p><p>Now you can just do like this instead:</p><p><a href="https://github.com/griimnak/Trinity3/blob/master/src/containers/Admin/Login.js" target="_blank">https://github.com/griimnak/Trinity3/blob/master/src/containers/Admin/Login.js</a></p><p>[doublepost=1515894147,1515880303][/doublepost]Coded the ability to also add style properties to the HTML tags.</p><p></p><p>e.g</p><p>[PHP]</p><p>section({ style: { outlineStyle: 'dotted', outlineColor: '#00ff00' } })(</p><p> // ...</p><p> span({ style: { color: 'red' } })(</p><p> 'Fuck yer nan!'</p><p> )</p><p>)</p><p>[/PHP]</p></blockquote><p></p>
[QUOTE="MayoMayn, post: 426414, member: 71840"] [B]# UPDATES[/B] I've coded a new plugin [URL]https://github.com/marcus-sa/trinity-dom[/URL] I got this idea off the already existing package for Scala.js [URL]http://www.lihaoyi.com/scalatags[/URL] plus it makes it more React like. Before you would code it inline like this: [URL]https://pastebin.com/BCgQPFcE[/URL] Now you can just do like this instead: [URL]https://github.com/griimnak/Trinity3/blob/master/src/containers/Admin/Login.js[/URL] [doublepost=1515894147,1515880303][/doublepost]Coded the ability to also add style properties to the HTML tags. e.g [PHP] section({ style: { outlineStyle: 'dotted', outlineColor: '#00ff00' } })( // ... span({ style: { color: 'red' } })( 'Fuck yer nan!' ) ) [/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Development
TrinityJS - Minimalistic web framework
Top