- Supported Bit Versions
- 
	
		
			- 64-bit
 
- Source Code URL
- https://github.com/marktheminer/obs-text-mustache
- Minimum OBS Studio Version
- 30.0.0
- Supported Platforms
- 
	
		
			- Windows
 
This is an enhancement to the Text (GDI+) source for Windows.  With it, you can enter text such as:
		 
	
Then, you can go to Tools->Edit Text (GDI+) With Templates Variables
That will show you the variables that it has found across all of your scenes:
		 
	
Then, you can fill them in:
		 
	
And, you see your source update:
		 
	
Open up your source again, and you'll see the template as well as the preview:
		 
	
As of v1.1.0 you can take advantage of DateTime functionality:
		 
	
It updates every quarter of a second (250ms).
You can also take advantage of conditional rendering as of v1.2.0.
You can now do:
	
	
    
	
		
And, if dj4name is defined, it'll try to render
	
	
    
	
		
And, then if dj4twitch is defined it will render:
	
	
    
	
		
but of course with {{dj4name}} and {{dj4twitch}} substituted with whatever they are defined to. Nesting is shown above to show that it supports it, you don't have to do complex things like that.
					
					
	
					
						
					
					
					
					
				Then, you can go to Tools->Edit Text (GDI+) With Templates Variables
That will show you the variables that it has found across all of your scenes:
Then, you can fill them in:
And, you see your source update:
Open up your source again, and you'll see the template as well as the preview:
As of v1.1.0 you can take advantage of DateTime functionality:
It updates every quarter of a second (250ms).
You can also take advantage of conditional rendering as of v1.2.0.
You can now do:
		Code:
	
	{{#if dj4name}}   {{dj4name}} {{#if dj4twitch}}- {{dj4twitch}}@twitch{{/if dj4twitch}}{{/if dj4name}}And, if dj4name is defined, it'll try to render
		Code:
	
	   {{dj4name}} {{#if dj4twitch}}- {{dj4twitch}}@twitch{{/if dj4twitch}}And, then if dj4twitch is defined it will render:
		Code:
	
	   {{dj4name}} - {{dj4twitch}}@twitchbut of course with {{dj4name}} and {{dj4twitch}} substituted with whatever they are defined to. Nesting is shown above to show that it supports it, you don't have to do complex things like that.
 
				


